Struct TryGetError

struct TryGetError { ... }

Error type for the try_get_ methods of Buf. Indicates that there were not enough remaining bytes in the buffer while attempting to get a value from a Buf with one of the try_get_ methods.

Fields

requested: usize

The number of bytes necessary to get the value

available: usize

The number of bytes available in the buffer

Implementations

impl Debug for TryGetError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for TryGetError

fn fmt(self: &Self, f: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error>

impl Eq for TryGetError

impl Error for TryGetError

impl Freeze for TryGetError

impl PartialEq for TryGetError

fn eq(self: &Self, other: &TryGetError) -> bool

impl RefUnwindSafe for TryGetError

impl Send for TryGetError

impl StructuralPartialEq for TryGetError

impl Sync for TryGetError

impl Unpin for TryGetError

impl UnwindSafe for TryGetError

impl<T> Any for TryGetError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for TryGetError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for TryGetError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for TryGetError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for TryGetError

fn to_string(self: &Self) -> String

impl<T, U> Into for TryGetError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for TryGetError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for TryGetError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>