pub struct BufferTooSmallError {
pub required_size: usize,
pub total_size: usize,
}Expand description
The buffer is too small to hold the entire message.
Consider increasing the size of the buffer. Keep in mind that the write buffer needs to be large enough to account for byte stuffing.
Fields§
§required_size: usizeThe required size of the buffer.
total_size: usizeThe total size of the buffer.
Implementations§
Trait Implementations§
Source§impl Debug for BufferTooSmallError
impl Debug for BufferTooSmallError
Source§impl Display for BufferTooSmallError
impl Display for BufferTooSmallError
Source§impl From<BufferTooSmallError> for ReadError
impl From<BufferTooSmallError> for ReadError
Source§fn from(other: BufferTooSmallError) -> Self
fn from(other: BufferTooSmallError) -> Self
Converts to this type from the input type.
Source§impl From<BufferTooSmallError> for WriteError
impl From<BufferTooSmallError> for WriteError
Source§fn from(other: BufferTooSmallError) -> Self
fn from(other: BufferTooSmallError) -> Self
Converts to this type from the input type.
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