pub struct BufferTooSmallError(pub Option<usize>);Expand description
The output buffer is too small.
It contains the size that the buffer needs to be for the call to succeed, if known.
Tuple Fields§
§0: Option<usize>Implementations§
Trait Implementations§
Source§impl Clone for BufferTooSmallError
impl Clone for BufferTooSmallError
Source§fn clone(&self) -> BufferTooSmallError
fn clone(&self) -> BufferTooSmallError
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 BufferTooSmallError
impl Debug for BufferTooSmallError
Source§impl Display for BufferTooSmallError
impl Display for BufferTooSmallError
Source§impl Error for BufferTooSmallError
impl Error for BufferTooSmallError
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()
Source§impl From<BufferTooSmallError> for OpenError
impl From<BufferTooSmallError> for OpenError
Source§fn from(value: BufferTooSmallError) -> Self
fn from(value: BufferTooSmallError) -> Self
Converts to this type from the input type.
Source§impl From<BufferTooSmallError> for SealError
impl From<BufferTooSmallError> for SealError
Source§fn from(value: BufferTooSmallError) -> Self
fn from(value: BufferTooSmallError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BufferTooSmallError
impl PartialEq for BufferTooSmallError
impl Copy for BufferTooSmallError
impl Eq for BufferTooSmallError
impl StructuralPartialEq for BufferTooSmallError
Auto Trait Implementations§
impl Freeze for BufferTooSmallError
impl RefUnwindSafe for BufferTooSmallError
impl Send for BufferTooSmallError
impl Sync for BufferTooSmallError
impl Unpin for BufferTooSmallError
impl UnwindSafe for BufferTooSmallError
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