pub struct Decoder<S, P, C = Buffer> { /* private fields */ }Expand description
Used together with the decode! macro
Implementations§
Source§impl<S, P> Decoder<S, P, Buffer>
impl<S, P> Decoder<S, P, Buffer>
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new Decoder with an internal buffer. Allows any AsyncRead/Read instance to
be used when decoding but there may be data left in the internal buffer after decoding
(accessible with Decoder::buffer)
Sourcepub fn new_buffer() -> Self
pub fn new_buffer() -> Self
Constructs a new Decoder with an internal buffer. Allows any AsyncRead/Read instance to
be used when decoding but there may be data left in the internal buffer after decoding
(accessible with Decoder::buffer)
Source§impl<S, P> Decoder<S, P, Bufferless>
impl<S, P> Decoder<S, P, Bufferless>
Sourcepub fn new_bufferless() -> Self
pub fn new_bufferless() -> Self
Constructs a new Decoder without an internal buffer. Requires the read instance to be
wrapped with combine’s BufReader instance to
Trait Implementations§
Auto Trait Implementations§
impl<S, P, C> Freeze for Decoder<S, P, C>
impl<S, P, C> RefUnwindSafe for Decoder<S, P, C>
impl<S, P, C> Send for Decoder<S, P, C>
impl<S, P, C> Sync for Decoder<S, P, C>
impl<S, P, C> Unpin for Decoder<S, P, C>
impl<S, P, C> UnwindSafe for Decoder<S, P, C>
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