Enum domain::base::opt::BuildDataError
source · pub enum BuildDataError {
LongOptData,
ShortBuf,
}
Expand description
An error happened while constructing an SVCB value.
Variants§
LongOptData
The value would exceed the allow length of a value.
ShortBuf
The underlying octets builder ran out of buffer space.
Trait Implementations§
source§impl Clone for BuildDataError
impl Clone for BuildDataError
source§fn clone(&self) -> BuildDataError
fn clone(&self) -> BuildDataError
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 BuildDataError
impl Debug for BuildDataError
source§impl Display for BuildDataError
impl Display for BuildDataError
source§impl Error for BuildDataError
impl Error for BuildDataError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<LongOptData> for BuildDataError
impl From<LongOptData> for BuildDataError
source§fn from(_: LongOptData) -> Self
fn from(_: LongOptData) -> Self
Converts to this type from the input type.
source§impl PartialEq for BuildDataError
impl PartialEq for BuildDataError
source§fn eq(&self, other: &BuildDataError) -> bool
fn eq(&self, other: &BuildDataError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BuildDataError
impl Eq for BuildDataError
impl StructuralPartialEq for BuildDataError
Auto Trait Implementations§
impl Freeze for BuildDataError
impl RefUnwindSafe for BuildDataError
impl Send for BuildDataError
impl Sync for BuildDataError
impl Unpin for BuildDataError
impl UnwindSafe for BuildDataError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.