Enum rust_corosync::CsError
source · [−]#[repr(u32)]
pub enum CsError {
Show 32 variants
CsOk,
CsErrLibrary,
CsErrVersion,
CsErrInit,
CsErrTimeout,
CsErrTryAgain,
CsErrInvalidParam,
CsErrNoMemory,
CsErrBadHandle,
CsErrBusy,
CsErrAccess,
CsErrNotExist,
CsErrNameTooLong,
CsErrExist,
CsErrNoSpace,
CsErrInterrupt,
CsErrNameNotFound,
CsErrNoResources,
CsErrNotSupported,
CsErrBadOperation,
CsErrFailedOperation,
CsErrMessageError,
CsErrQueueFull,
CsErrQueueNotAvailable,
CsErrBadFlags,
CsErrTooBig,
CsErrNoSection,
CsErrContextNotFound,
CsErrTooManyGroups,
CsErrSecurity,
CsErrRustCompat,
CsErrRustString,
}Expand description
Error codes returned from the corosync libraries
Variants
CsOk
CsErrLibrary
CsErrVersion
CsErrInit
CsErrTimeout
CsErrTryAgain
CsErrInvalidParam
CsErrNoMemory
CsErrBadHandle
CsErrBusy
CsErrAccess
CsErrNotExist
CsErrNameTooLong
CsErrExist
CsErrNoSpace
CsErrInterrupt
CsErrNameNotFound
CsErrNoResources
CsErrNotSupported
CsErrBadOperation
CsErrFailedOperation
CsErrMessageError
CsErrQueueFull
CsErrQueueNotAvailable
CsErrBadFlags
CsErrTooBig
CsErrNoSection
CsErrContextNotFound
CsErrTooManyGroups
CsErrSecurity
CsErrRustCompat
CsErrRustString
Trait Implementations
sourceimpl Error for CsError
impl Error for CsError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl TryFrom<u32> for CsError
impl TryFrom<u32> for CsError
type Error = TryFromPrimitiveError<CsError>
type Error = TryFromPrimitiveError<CsError>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for CsError
impl TryFromPrimitive for CsError
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CsError
impl Eq for CsError
impl StructuralEq for CsError
impl StructuralPartialEq for CsError
Auto Trait Implementations
impl RefUnwindSafe for CsError
impl Send for CsError
impl Sync for CsError
impl Unpin for CsError
impl UnwindSafe for CsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more