Struct ssh_encoding::NestedReader
source · pub struct NestedReader<'r, R: Reader> { /* private fields */ }
Expand description
Reader type used by Reader::read_prefixed
.
Trait Implementations§
source§impl<'r, R: Reader> Reader for NestedReader<'r, R>
impl<'r, R: Reader> Reader for NestedReader<'r, R>
source§fn read<'o>(&mut self, out: &'o mut [u8]) -> Result<&'o [u8]>
fn read<'o>(&mut self, out: &'o mut [u8]) -> Result<&'o [u8]>
Read as much data as is needed to exactly fill
out
. Read moresource§fn remaining_len(&self) -> usize
fn remaining_len(&self) -> usize
Get the length of the remaining data after Base64 decoding.
source§fn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Is decoding finished?
source§fn read_prefixed<'r, T, E, F>(&'r mut self, f: F) -> Result<T, E>where
E: From<Error>,
F: FnOnce(&mut NestedReader<'r, Self>) -> Result<T, E>,
fn read_prefixed<'r, T, E, F>(&'r mut self, f: F) -> Result<T, E>where E: From<Error>, F: FnOnce(&mut NestedReader<'r, Self>) -> Result<T, E>,
Decode length-prefixed data. Read more
source§fn drain(&mut self, n_bytes: usize) -> Result<()>
fn drain(&mut self, n_bytes: usize) -> Result<()>
Drain the given number of bytes from the reader, discarding them.
Auto Trait Implementations§
impl<'r, R> RefUnwindSafe for NestedReader<'r, R>where R: RefUnwindSafe,
impl<'r, R> Send for NestedReader<'r, R>where R: Send,
impl<'r, R> Sync for NestedReader<'r, R>where R: Sync,
impl<'r, R> Unpin for NestedReader<'r, R>
impl<'r, R> !UnwindSafe for NestedReader<'r, R>
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