pub struct TryGetError {
pub requested: usize,
pub available: usize,
}
Expand description
Fields§
§requested: usize
The number of bytes necessary to get the value
available: usize
The number of bytes available in the buffer
Trait Implementations§
Source§impl Debug for TryGetError
impl Debug for TryGetError
Source§impl Display for TryGetError
impl Display for TryGetError
Source§impl Error for TryGetError
impl Error for TryGetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TryGetError> for Error
impl From<TryGetError> for Error
Source§fn from(error: TryGetError) -> Self
fn from(error: TryGetError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TryGetError
impl PartialEq for TryGetError
impl Eq for TryGetError
impl StructuralPartialEq for TryGetError
Auto Trait Implementations§
impl Freeze for TryGetError
impl RefUnwindSafe for TryGetError
impl Send for TryGetError
impl Sync for TryGetError
impl Unpin for TryGetError
impl UnwindSafe for TryGetError
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