Struct ssh_encoding::base64::Base64Reader
source · pub struct Base64Reader<'i> { /* private fields */ }
Available on crate feature
base64
only.Expand description
Constant-time Base64 reader implementation.
Implementations§
Trait Implementations§
source§impl Reader for Base64Reader<'_>
impl Reader for Base64Reader<'_>
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 read_prefixed<T, E, F>(&mut self, f: F) -> Result<T, E>
fn read_prefixed<T, E, F>(&mut self, f: F) -> Result<T, E>
Decode length-prefixed data. Read more
source§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 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<'i> Freeze for Base64Reader<'i>
impl<'i> RefUnwindSafe for Base64Reader<'i>
impl<'i> Send for Base64Reader<'i>
impl<'i> Sync for Base64Reader<'i>
impl<'i> Unpin for Base64Reader<'i>
impl<'i> UnwindSafe for Base64Reader<'i>
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