pub enum DesiredCode {
Reach,
Contract,
Sensitive,
NotFound,
InvalidRequest,
Unavailable,
Busy,
DeviceRefused,
}Expand description
A desired refusal’s code (§4).
Variants§
Implementations§
Source§impl DesiredCode
impl DesiredCode
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Its name, as DESIRED_CODES spells it.
Trait Implementations§
Source§impl Clone for DesiredCode
impl Clone for DesiredCode
impl Copy for DesiredCode
Source§impl Debug for DesiredCode
impl Debug for DesiredCode
Source§impl<'de> Deserialize<'de> for DesiredCode
impl<'de> Deserialize<'de> for DesiredCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DesiredCode
Source§impl From<DesiredCode> for DesiredCode
impl From<DesiredCode> for DesiredCode
Source§fn from(c: DesiredCode) -> Self
fn from(c: DesiredCode) -> Self
Converts to this type from the input type.
Source§impl Hash for DesiredCode
impl Hash for DesiredCode
Source§impl PartialEq for DesiredCode
impl PartialEq for DesiredCode
Source§impl Serialize for DesiredCode
impl Serialize for DesiredCode
impl StructuralPartialEq for DesiredCode
Auto Trait Implementations§
impl Forget for DesiredCode
impl Freeze for DesiredCode
impl Move for DesiredCode
impl RefUnwindSafe for DesiredCode
impl Send for DesiredCode
impl Sync for DesiredCode
impl Unpin for DesiredCode
impl UnsafeUnpin for DesiredCode
impl UnwindSafe for DesiredCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more