pub struct DecodingStream<'a> { /* private fields */ }Expand description
Decoding stream for efficient multi-value decoding
Implementations§
Source§impl<'a> DecodingStream<'a>
impl<'a> DecodingStream<'a>
Sourcepub fn peek_tag(&self) -> Result<ApplicationTag>
pub fn peek_tag(&self) -> Result<ApplicationTag>
Peek at the next tag without consuming
Sourcepub fn decode_boolean(&mut self) -> Result<bool>
pub fn decode_boolean(&mut self) -> Result<bool>
Decode a boolean
Sourcepub fn decode_unsigned(&mut self) -> Result<u32>
pub fn decode_unsigned(&mut self) -> Result<u32>
Decode an unsigned integer
Sourcepub fn decode_signed(&mut self) -> Result<i32>
pub fn decode_signed(&mut self) -> Result<i32>
Decode a signed integer
Sourcepub fn decode_real(&mut self) -> Result<f32>
pub fn decode_real(&mut self) -> Result<f32>
Decode a real number
Sourcepub fn decode_double(&mut self) -> Result<f64>
pub fn decode_double(&mut self) -> Result<f64>
Decode a double
Sourcepub fn decode_character_string(&mut self) -> Result<String>
pub fn decode_character_string(&mut self) -> Result<String>
Decode a character string
Sourcepub fn decode_octet_string(&mut self) -> Result<Vec<u8>>
pub fn decode_octet_string(&mut self) -> Result<Vec<u8>>
Decode an octet string
Sourcepub fn decode_enumerated(&mut self) -> Result<u32>
pub fn decode_enumerated(&mut self) -> Result<u32>
Decode an enumerated value
Sourcepub fn decode_object_identifier(&mut self) -> Result<ObjectIdentifier>
pub fn decode_object_identifier(&mut self) -> Result<ObjectIdentifier>
Decode an object identifier
Sourcepub fn skip_value(&mut self) -> Result<()>
pub fn skip_value(&mut self) -> Result<()>
Skip a value
Sourcepub fn set_position(&mut self, position: usize) -> Result<()>
pub fn set_position(&mut self, position: usize) -> Result<()>
Set position
Auto Trait Implementations§
impl<'a> Freeze for DecodingStream<'a>
impl<'a> RefUnwindSafe for DecodingStream<'a>
impl<'a> Send for DecodingStream<'a>
impl<'a> Sync for DecodingStream<'a>
impl<'a> Unpin for DecodingStream<'a>
impl<'a> UnsafeUnpin for DecodingStream<'a>
impl<'a> UnwindSafe for DecodingStream<'a>
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