pub enum Error {
LongKey,
Malformed,
ReadOnly,
SmallBuffer(usize),
}
Expand description
Error that might occur when using binn values
Variants§
LongKey
Attempted to insert value with key longer than 255 bytes
Malformed
Given byte buffer was malformed and couldn’t be parsed
ReadOnly
Container was read only and cannot be modified
SmallBuffer(usize)
Indicates that static buffer was not big enough and contains how many extra bytes are needed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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