pub enum PayloadError {
BadSize,
}Expand description
Error variants for resizing.
Variants§
BadSize
Indicates the requested length could not be provided.
The exact cause will depend on circumstances: the resource might be exhausted; the size could be too small; or it is required that the size be divisible by a certain constant.
Trait Implementations§
Source§impl From<Error> for Error
Can convert from a payload error.
impl From<Error> for Error
Can convert from a payload error.
One common cause is failure to resize the buffer to the necessary size.
Source§fn from(err: PayloadError) -> Self
fn from(err: PayloadError) -> Self
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
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