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 allowed length of a value.
ShortBuf
The underlying octets builder ran out of buffer space.
Implementations§
source§impl BuildDataError
impl BuildDataError
sourcepub fn unlimited_buf(self) -> LongOptData
pub fn unlimited_buf(self) -> LongOptData
Converts the error into a LongOptData
error for ‘endless’ buffers.
§Panics
This method will panic if the error is of the ShortBuf
variant.
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)>
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<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
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§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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.