pub enum MagicBufferError {
OOM,
InvalidLen {
msg: String,
},
}
Expand description
The MagicBufferError
error indicates an allocation failure that may be due
to resource exhaustion or to something wrong with the given input arguments
to MagicBuffer::new
.
Variants§
OOM
There is not enough memory available.
InvalidLen
The specified buffer length is invalid. See MagicBuffer::new
for more information.
Trait Implementations§
Source§impl Debug for MagicBufferError
impl Debug for MagicBufferError
Source§impl Display for MagicBufferError
impl Display for MagicBufferError
Source§impl Error for MagicBufferError
impl Error for MagicBufferError
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 MagicBufferError
impl RefUnwindSafe for MagicBufferError
impl Send for MagicBufferError
impl Sync for MagicBufferError
impl Unpin for MagicBufferError
impl UnwindSafe for MagicBufferError
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