pub enum BytesEncodeError {
InputTooLarge {
input_len: usize,
max_input_len: usize,
},
Encode(EncodeError),
}Expand description
Encoding 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.
Encode(EncodeError)
Base64 encoding failed after the input-size check passed.
Trait Implementations§
Source§impl Clone for BytesEncodeError
impl Clone for BytesEncodeError
Source§fn clone(&self) -> BytesEncodeError
fn clone(&self) -> BytesEncodeError
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 BytesEncodeError
Source§impl Debug for BytesEncodeError
impl Debug for BytesEncodeError
Source§impl Display for BytesEncodeError
impl Display for BytesEncodeError
impl Eq for BytesEncodeError
Source§impl Error for BytesEncodeError
Available on crate feature std only.
impl Error for BytesEncodeError
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<EncodeError> for BytesEncodeError
impl From<EncodeError> for BytesEncodeError
Source§fn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BytesEncodeError
impl PartialEq for BytesEncodeError
Source§fn eq(&self, other: &BytesEncodeError) -> bool
fn eq(&self, other: &BytesEncodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BytesEncodeError
Auto Trait Implementations§
impl Freeze for BytesEncodeError
impl RefUnwindSafe for BytesEncodeError
impl Send for BytesEncodeError
impl Sync for BytesEncodeError
impl Unpin for BytesEncodeError
impl UnsafeUnpin for BytesEncodeError
impl UnwindSafe for BytesEncodeError
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