mirror of
https://git.proxmox.com/git/perlmod
synced 2025-10-04 13:22:15 +00:00
document errno and serializ_error in the #[export] doc
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
754682961f
commit
f95893f1bc
@ -87,6 +87,11 @@ pub use perlmod_macro::package;
|
||||
/// * `name`: the name the function should be using in perl. This only makes sense with the
|
||||
/// `#[package]` macro, as otherwise the user is responsible for loading the function via perl's
|
||||
/// `DynaLoader` on their own.
|
||||
/// * `errno`: copy the value set via [`set_errno`](crate::error::set_errno) to libc's `errno`
|
||||
/// location before returning to perl (after all side effects such as destructors) have run, in
|
||||
/// order to allow setting perl's `$!` variable.
|
||||
/// * `serialize_error`: Instead of stringifying the `Err` part of a `Result` via `Display`,
|
||||
/// serialize it into a structured value.
|
||||
///
|
||||
/// Additionally, function parameters can also use the following attributes:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user