Struct bcder::string::OctetStringSource
source · pub struct OctetStringSource { /* private fields */ }
Expand description
A decode source atop an octet string.
Trait Implementations§
source§impl Source for OctetStringSource
impl Source for OctetStringSource
§type Error = Infallible
type Error = Infallible
The error produced when the source failed to read more data.
source§fn request(&mut self, len: usize) -> Result<usize, Self::Error>
fn request(&mut self, len: usize) -> Result<usize, Self::Error>
Request at least
len
bytes to be available. Read moresource§fn bytes(&self, start: usize, end: usize) -> Bytes
fn bytes(&self, start: usize, end: usize) -> Bytes
Produces a
Bytes
value from part of the data. Read moresource§fn skip(&mut self, len: usize) -> Result<usize, Self::Error>
fn skip(&mut self, len: usize) -> Result<usize, Self::Error>
Skip over the next
len
bytes. Read moresource§fn take_u8(&mut self) -> Result<u8, DecodeError<Self::Error>>
fn take_u8(&mut self) -> Result<u8, DecodeError<Self::Error>>
Takes a single octet from the source. Read more
source§fn take_opt_u8(&mut self) -> Result<Option<u8>, Self::Error>
fn take_opt_u8(&mut self) -> Result<Option<u8>, Self::Error>
Takes an optional octet from the source. Read more
source§fn content_err(&self, err: impl Into<ContentError>) -> DecodeError<Self::Error>
fn content_err(&self, err: impl Into<ContentError>) -> DecodeError<Self::Error>
Returns a content error at the current position of the source.
Auto Trait Implementations§
impl RefUnwindSafe for OctetStringSource
impl Send for OctetStringSource
impl Sync for OctetStringSource
impl Unpin for OctetStringSource
impl UnwindSafe for OctetStringSource
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