[−][src]Struct serde_bser::de::Bunser
Methods
impl<'de, R> Bunser<R> where
R: DeRead<'de>,
[src]
R: DeRead<'de>,
pub fn new(read: R) -> Self
[src]
pub fn read_pdu(&mut self) -> Result<PduInfo, Error>
[src]
Read the PDU off the stream. This should be called in the beginning.
pub fn read_count(&self) -> i64
[src]
pub fn end(&self, pdu_info: &PduInfo) -> Result<(), Error>
[src]
pub fn peek(&mut self) -> Result<u8, Error>
[src]
pub fn discard(&mut self)
[src]
pub fn read_bytes<'s>(
&'s mut self,
len: i64
) -> Result<Reference<'de, 's, [u8]>, Error>
[src]
&'s mut self,
len: i64
) -> Result<Reference<'de, 's, [u8]>, Error>
Return a borrowed or copied version of the next n bytes.
pub fn next_i8(&mut self) -> Result<i8, Error>
[src]
Return the next i8 value. This assumes the caller already knows the next value is an i8.
pub fn next_i16(&mut self) -> Result<i16, Error>
[src]
Return the next i16 value. This assumes the caller already knows the next value is an i16.
pub fn next_i32(&mut self) -> Result<i32, Error>
[src]
Return the next i32 value. This assumes the caller already knows the next value is an i32.
pub fn next_i64(&mut self) -> Result<i64, Error>
[src]
Return the next i64 value. This assumes the caller already knows the next value is an i64.
pub fn check_next_int(&mut self) -> Result<i64, Error>
[src]
Check and return the next integer value. Errors out if the next value is not actually an int.
pub fn next_f64(&mut self) -> Result<f64, Error>
[src]
Trait Implementations
Auto Trait Implementations
impl<R> Send for Bunser<R> where
R: Send,
R: Send,
impl<R> Sync for Bunser<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Bunser<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Bunser<R> where
R: UnwindSafe,
R: UnwindSafe,
impl<R> RefUnwindSafe for Bunser<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,