pub struct nix_c_context { /* private fields */ }Expand description
This object stores error state. @struct nix_c_context
Passed as a first parameter to functions that can fail, to store error information.
Optional wherever it can be used, passing NULL instead will throw a C++ exception.
The struct is laid out so that it can also be cast to nix_err* to inspect directly: @code{.c} assert((nix_err)ctx == NIX_OK); @endcode > Note These can be reused between different function calls, but make sure not to use them for multiple calls simultaneously (which can happen in callbacks).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for nix_c_context
impl RefUnwindSafe for nix_c_context
impl Send for nix_c_context
impl Sync for nix_c_context
impl Unpin for nix_c_context
impl UnsafeUnpin for nix_c_context
impl UnwindSafe for nix_c_context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more