pub enum BuildAlpnError {
InvalidProtocol,
LongSvcParam,
ShortBuf,
}
Expand description
An error happened while constructing an SVCB value.
Variants§
InvalidProtocol
The protocol value is not valid.
It was either empty or longer than 255 octets.
LongSvcParam
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 BuildAlpnError
impl Clone for BuildAlpnError
source§fn clone(&self) -> BuildAlpnError
fn clone(&self) -> BuildAlpnError
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 BuildAlpnError
impl Debug for BuildAlpnError
source§impl Display for BuildAlpnError
impl Display for BuildAlpnError
source§impl Error for BuildAlpnError
impl Error for BuildAlpnError
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()
impl Copy for BuildAlpnError
Auto Trait Implementations§
impl Freeze for BuildAlpnError
impl RefUnwindSafe for BuildAlpnError
impl Send for BuildAlpnError
impl Sync for BuildAlpnError
impl Unpin for BuildAlpnError
impl UnwindSafe for BuildAlpnError
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<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.