pub enum InitError {
AlreadyInitialized,
BadAlignment,
TooSmall,
TooLarge,
}Expand description
Error returned by init when initialization fails.
Variants§
AlreadyInitialized
init has already been called.
BadAlignment
Memory region is not properly aligned for the ring buffer header.
TooSmall
Memory region is too small to hold the ring buffer header plus data.
TooLarge
Buffer size would overflow pointer arithmetic.
Trait Implementations§
impl Copy for InitError
impl Eq for InitError
impl StructuralPartialEq for InitError
Auto Trait Implementations§
impl Freeze for InitError
impl RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl UnwindSafe for InitError
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