pub enum PushNameError {
LongName,
ShortBuf,
}
Expand description
An error happened while trying to push a name to a domain name builder.
Variants
LongName
The name would exceed the limit of 255 bytes.
ShortBuf
The buffer is too short to contain the name.
Trait Implementations
sourceimpl Clone for PushNameError
impl Clone for PushNameError
sourcefn clone(&self) -> PushNameError
fn clone(&self) -> PushNameError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PushNameError
impl Debug for PushNameError
sourceimpl Display for PushNameError
impl Display for PushNameError
sourceimpl Error for PushNameError
impl Error for PushNameError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<PushNameError> for FromStrError
impl From<PushNameError> for FromStrError
sourcefn from(err: PushNameError) -> FromStrError
fn from(err: PushNameError) -> FromStrError
Converts to this type from the input type.
sourceimpl From<PushNameError> for SyntaxError
Available on crate feature master
only.
impl From<PushNameError> for SyntaxError
Available on crate feature
master
only.sourcefn from(err: PushNameError) -> SyntaxError
fn from(err: PushNameError) -> SyntaxError
Converts to this type from the input type.
sourceimpl From<ShortBuf> for PushNameError
impl From<ShortBuf> for PushNameError
sourceimpl PartialEq<PushNameError> for PushNameError
impl PartialEq<PushNameError> for PushNameError
sourcefn eq(&self, other: &PushNameError) -> bool
fn eq(&self, other: &PushNameError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for PushNameError
impl Eq for PushNameError
impl StructuralEq for PushNameError
impl StructuralPartialEq for PushNameError
Auto Trait Implementations
impl RefUnwindSafe for PushNameError
impl Send for PushNameError
impl Sync for PushNameError
impl Unpin for PushNameError
impl UnwindSafe for PushNameError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.