Struct slip_codec::SlipDecoder
source · pub struct SlipDecoder { /* private fields */ }
Expand description
SLIP decoder context
Implementations§
source§impl SlipDecoder
impl SlipDecoder
sourcepub fn decode(
&mut self,
source: &mut dyn Read,
sink: &mut dyn Write
) -> SlipResult
pub fn decode( &mut self, source: &mut dyn Read, sink: &mut dyn Write ) -> SlipResult
Attempts to decode a single SLIP frame from the given source.
Arguments
source
- Encoded SLIP data source implementing the std::io::Read trait
Returns a Vec
Trait Implementations§
source§impl Debug for SlipDecoder
impl Debug for SlipDecoder
Auto Trait Implementations§
impl RefUnwindSafe for SlipDecoder
impl Send for SlipDecoder
impl Sync for SlipDecoder
impl Unpin for SlipDecoder
impl UnwindSafe for SlipDecoder
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