Enum bern_kernel::sync::Error
source · [−]pub enum Error {
WouldBlock,
TimeOut,
Poisoned,
OutOfMemory,
}
Expand description
Common error type for all sync primitives
Variants
WouldBlock
Would block task
TimeOut
Request timed out
Poisoned
Task holding the sync primitive panicked
OutOfMemory
Cannot allocate primitive
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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