pub struct Full;Expand description
A sink has no room for the bytes it was given.
Returned by Sink::put; writers turn it into
WriteError::Full.
§Examples
use parse_net::{Full, Sink, SliceSink};
let mut buf = [0u8; 2];
let mut out = SliceSink::new(&mut buf);
assert_eq!(out.put(b"abc"), Err(Full));Trait Implementations§
impl Copy for Full
impl Eq for Full
Source§impl Error for Full
impl Error for Full
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<Full> for WriteError
impl From<Full> for WriteError
impl StructuralPartialEq for Full
Auto Trait Implementations§
impl Freeze for Full
impl RefUnwindSafe for Full
impl Send for Full
impl Sync for Full
impl Unpin for Full
impl UnsafeUnpin for Full
impl UnwindSafe for Full
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