pub enum TryPutIntegerError {
NotEnoughSpace(TryPutError),
InvalidLength(InvalidIntegerLength),
}Expand description
Error type for the try_put_ methods of crate::Buffer.
Indicates that there were not enough remaining
capacity in the buffer while attempting
to put a value to a crate::Buffer with one
of the try_put_ methods.
Variants§
NotEnoughSpace(TryPutError)
Not enough space to write all bytes.
InvalidLength(InvalidIntegerLength)
Invalid number of bytes specified.
Trait Implementations§
Source§impl Debug for TryPutIntegerError
impl Debug for TryPutIntegerError
Source§impl Display for TryPutIntegerError
impl Display for TryPutIntegerError
impl Eq for TryPutIntegerError
Source§impl Error for TryPutIntegerError
impl Error for TryPutIntegerError
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<InvalidIntegerLength> for TryPutIntegerError
impl From<InvalidIntegerLength> for TryPutIntegerError
Source§fn from(value: InvalidIntegerLength) -> Self
fn from(value: InvalidIntegerLength) -> Self
Converts to this type from the input type.
Source§impl From<TryPutIntegerError> for Error
Available on crate feature std only.
impl From<TryPutIntegerError> for Error
Available on crate feature
std only.Source§fn from(value: TryPutIntegerError) -> Self
fn from(value: TryPutIntegerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TryPutIntegerError
impl PartialEq for TryPutIntegerError
impl StructuralPartialEq for TryPutIntegerError
Auto Trait Implementations§
impl Freeze for TryPutIntegerError
impl RefUnwindSafe for TryPutIntegerError
impl Send for TryPutIntegerError
impl Sync for TryPutIntegerError
impl Unpin for TryPutIntegerError
impl UnsafeUnpin for TryPutIntegerError
impl UnwindSafe for TryPutIntegerError
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
Source§impl<T> ToUtf8Bytes for T
impl<T> ToUtf8Bytes for T
Source§fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
fn to_utf8bytes(&self) -> Utf8Bytes<Shared>
Available on crate features
alloc or std only.Source§fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
fn to_compact_utf8bytes(&self) -> Utf8Bytes<Compact>
Available on crate features
alloc or std only.