Enum trust_dns_proto::serialize::binary::DecodeError [−][src]
pub enum DecodeError { InsufficientBytes, InvalidPreviousIndex, PointerNotPriorToLabel { idx: usize, ptr: u16, }, LabelBytesTooLong(usize), UnrecognizedLabelCode(u8), DomainNameTooLong(usize), LabelOverlapsWithOther { label: usize, other: usize, }, }
Expand description
An error that can occur deep in a decoder This type is kept very small so that function that use it inline often
Variants
Expand description
Insufficient data in the buffer for a read operation
Expand description
slice_from was called with an invalid index
Expand description
Pointer points to an index within or after the current label
Show fields
LabelBytesTooLong(usize)
Expand description
Label bytes exceeded the limit of 63
UnrecognizedLabelCode(u8)
Expand description
An unrecognized label code was found
DomainNameTooLong(usize)
Expand description
A domain name was too long
Expand description
Overlapping labels
Show fields
Trait Implementations
impl Clone for DecodeError
[src]
impl Clone for DecodeError
[src]fn clone(&self) -> DecodeError
[src]
fn clone(&self) -> DecodeError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DecodeError
[src]
impl Debug for DecodeError
[src]impl Display for DecodeError
[src]
impl Display for DecodeError
[src]impl Error for DecodeError
[src]
impl Error for DecodeError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<DecodeError> for ProtoError
[src]
impl From<DecodeError> for ProtoError
[src]fn from(err: DecodeError) -> ProtoError
[src]
fn from(err: DecodeError) -> ProtoError
[src]Performs the conversion.
impl Copy for DecodeError
[src]
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,