pub enum TakeError {
PendingFilling,
AlreadyTaken,
KernelOwns,
Returned,
OnlyOneTakeable,
}Expand description
Errors relating to taking (ownership)
Variants§
PendingFilling
Filling pendign by the User
AlreadyTaken
Already taken, typically internal error.
KernelOwns
Kernel owns, cannot take.
Returned
Buffer is returned but not marked for re-usable
OnlyOneTakeable
Cannot take multi-buffer-holder, requires one single buffer.
Trait Implementations§
Source§impl Error for TakeError
impl Error for TakeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TakeError
impl RefUnwindSafe for TakeError
impl Send for TakeError
impl Sync for TakeError
impl Unpin for TakeError
impl UnwindSafe for TakeError
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