pub struct DecodeLengthError {
pub num_chars: usize,
pub expected_num_chars: usize,
}
Expand description
Error struct used when decoding a client routing label key of an improper length.
§Examples:
use amazon_cloudfront_client_routing_lib::errors::DecodeLengthError;
let error = DecodeLengthError {
num_chars: 10,
expected_num_chars: 29,
};
assert_eq!("Passed 10 - expected 29 characters", error.to_string());
Fields§
§num_chars: usize
§expected_num_chars: usize
Trait Implementations§
Source§impl Clone for DecodeLengthError
impl Clone for DecodeLengthError
Source§fn clone(&self) -> DecodeLengthError
fn clone(&self) -> DecodeLengthError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecodeLengthError
impl Debug for DecodeLengthError
Source§impl Display for DecodeLengthError
impl Display for DecodeLengthError
Source§impl Error for DecodeLengthError
impl Error for DecodeLengthError
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()
impl Copy for DecodeLengthError
Auto Trait Implementations§
impl Freeze for DecodeLengthError
impl RefUnwindSafe for DecodeLengthError
impl Send for DecodeLengthError
impl Sync for DecodeLengthError
impl Unpin for DecodeLengthError
impl UnwindSafe for DecodeLengthError
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