#[repr(C)]pub enum PamojaStatus {
Ok = 0,
Transport = 1,
Io = 2,
Codec = 3,
Closed = 4,
Unsupported = 5,
InvalidArgument = 6,
Other = 7,
Panic = 8,
Auth = 9,
}Expand description
The result of a fallible pamoja call.
A return of PamojaStatus::Ok means success; any other value indicates a
failure whose description is available from pamoja_last_error_message on
the same thread.
Variants§
Ok = 0
The call succeeded.
Transport = 1
A transport-level failure while connecting, sending, or receiving.
Io = 2
A device or peripheral input/output operation failed.
Codec = 3
A payload could not be encoded or decoded.
Closed = 4
The operation targeted a resource that is closed or disconnected.
Unsupported = 5
The requested capability is not compiled into this build.
InvalidArgument = 6
An argument was null or otherwise invalid, for example non-UTF-8 text.
Other = 7
A failure that does not map onto a more specific status.
Panic = 8
A Rust panic was caught at the boundary; the call had no effect.
Auth = 9
A security check failed, such as an invalid identity or a bad signature.
Trait Implementations§
Source§impl Clone for PamojaStatus
impl Clone for PamojaStatus
Source§fn clone(&self) -> PamojaStatus
fn clone(&self) -> PamojaStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PamojaStatus
Source§impl Debug for PamojaStatus
impl Debug for PamojaStatus
impl Eq for PamojaStatus
Source§impl PartialEq for PamojaStatus
impl PartialEq for PamojaStatus
Source§fn eq(&self, other: &PamojaStatus) -> bool
fn eq(&self, other: &PamojaStatus) -> bool
self and other values to be equal, and is used by ==.