pub enum WriterError {
LimitExceeded {
limit: u64,
},
InvalidWriteCount {
offered: usize,
written: usize,
},
}Expand description
A write rejected by the output boundary, carried inside io::Error.
Variants§
LimitExceeded
The complete offered buffer would exceed the caller’s byte allowance.
InvalidWriteCount
The underlying writer violated Write::write’s accepted-byte contract.
Trait Implementations§
Source§impl Clone for WriterError
impl Clone for WriterError
impl Copy for WriterError
Source§impl Debug for WriterError
impl Debug for WriterError
Source§impl Display for WriterError
impl Display for WriterError
impl Eq for WriterError
Source§impl Error for WriterError
impl Error for WriterError
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 PartialEq for WriterError
impl PartialEq for WriterError
impl StructuralPartialEq for WriterError
Auto Trait Implementations§
impl Freeze for WriterError
impl RefUnwindSafe for WriterError
impl Send for WriterError
impl Sync for WriterError
impl Unpin for WriterError
impl UnsafeUnpin for WriterError
impl UnwindSafe for WriterError
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