pub enum BytesDecodeError {
InputTooLarge {
input_len: usize,
max_input_len: usize,
},
Decode(DecodeError),
}Expand description
Decoding error for bounded bytes integration helpers.
Variants§
InputTooLarge
The input buffer reports more remaining bytes than the caller permits.
Fields
§
input_len: usizeRemaining input bytes reported by Buf::remaining.
Decode(DecodeError)
Base64 decoding failed after the input-size check passed.
Trait Implementations§
Source§impl Clone for BytesDecodeError
impl Clone for BytesDecodeError
Source§fn clone(&self) -> BytesDecodeError
fn clone(&self) -> BytesDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BytesDecodeError
Source§impl Debug for BytesDecodeError
impl Debug for BytesDecodeError
Source§impl Display for BytesDecodeError
impl Display for BytesDecodeError
impl Eq for BytesDecodeError
Source§impl Error for BytesDecodeError
Available on crate feature std only.
impl Error for BytesDecodeError
Available on crate feature
std only.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<DecodeError> for BytesDecodeError
impl From<DecodeError> for BytesDecodeError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BytesDecodeError
impl PartialEq for BytesDecodeError
impl StructuralPartialEq for BytesDecodeError
Auto Trait Implementations§
impl Freeze for BytesDecodeError
impl RefUnwindSafe for BytesDecodeError
impl Send for BytesDecodeError
impl Sync for BytesDecodeError
impl Unpin for BytesDecodeError
impl UnsafeUnpin for BytesDecodeError
impl UnwindSafe for BytesDecodeError
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