pub enum WakeInitError {
StorageTooSmall {
needed: usize,
available: usize,
},
AlignmentTooStrict {
needed: usize,
available: usize,
},
Unsupported,
}Expand description
Errors at construction time.
Variants§
StorageTooSmall
P::wake_storage_size() returned more bytes than the
inline buffer can hold. The platform impl needs more room
than the API contract reserved — bump
WAKE_STORAGE_BYTES or switch the consumer to a heap
path.
AlignmentTooStrict
P::wake_storage_align() returned a stricter alignment
than WAKE_STORAGE_ALIGN.
Unsupported
P::wake_init returned -1. Platform doesn’t implement a
wake primitive (single-thread bare-metal).
Trait Implementations§
Source§impl Clone for WakeInitError
impl Clone for WakeInitError
Source§fn clone(&self) -> WakeInitError
fn clone(&self) -> WakeInitError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WakeInitError
impl Debug for WakeInitError
Source§impl PartialEq for WakeInitError
impl PartialEq for WakeInitError
impl Copy for WakeInitError
impl Eq for WakeInitError
impl StructuralPartialEq for WakeInitError
Auto Trait Implementations§
impl Freeze for WakeInitError
impl RefUnwindSafe for WakeInitError
impl Send for WakeInitError
impl Sync for WakeInitError
impl Unpin for WakeInitError
impl UnsafeUnpin for WakeInitError
impl UnwindSafe for WakeInitError
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