[−][src]Struct async_coap::option::OptionKey
Typed option key, for type-safe access to CoAP options.
Methods
impl<T> OptionKey<T>
[src]
pub const fn new(n: OptionNumber) -> OptionKey<T>
[src]
Creates a new instance with the given option number.
Methods from Deref<Target = OptionNumber>
pub const IF_MATCH: OptionNumber
[src]
pub const URI_HOST: OptionNumber
[src]
pub const ETAG: OptionNumber
[src]
pub const IF_NONE_MATCH: OptionNumber
[src]
pub const OBSERVE: OptionNumber
[src]
pub const URI_PORT: OptionNumber
[src]
pub const LOCATION_PATH: OptionNumber
[src]
pub const OSCORE: OptionNumber
[src]
pub const URI_PATH: OptionNumber
[src]
pub const CONTENT_FORMAT: OptionNumber
[src]
pub const MAX_AGE: OptionNumber
[src]
pub const URI_QUERY: OptionNumber
[src]
pub const ACCEPT: OptionNumber
[src]
pub const LOCATION_QUERY: OptionNumber
[src]
pub const BLOCK2: OptionNumber
[src]
pub const BLOCK1: OptionNumber
[src]
pub const SIZE2: OptionNumber
[src]
pub const PROXY_URI: OptionNumber
[src]
pub const PROXY_SCHEME: OptionNumber
[src]
pub const SIZE1: OptionNumber
[src]
pub const NO_RESPONSE: OptionNumber
[src]
Trait Implementations
impl<T> Send for OptionKey<T>
[src]
impl<T: Ord> Ord for OptionKey<T>
[src]
fn cmp(&self, other: &OptionKey<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more
impl<T: PartialOrd> PartialOrd<OptionKey<T>> for OptionKey<T>
[src]
fn partial_cmp(&self, other: &OptionKey<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &OptionKey<T>) -> bool
[src]
fn le(&self, other: &OptionKey<T>) -> bool
[src]
fn gt(&self, other: &OptionKey<T>) -> bool
[src]
fn ge(&self, other: &OptionKey<T>) -> bool
[src]
impl<T: PartialEq> PartialEq<OptionKey<T>> for OptionKey<T>
[src]
impl<T> Clone for OptionKey<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Eq> Eq for OptionKey<T>
[src]
impl<T> Copy for OptionKey<T>
[src]
impl<T> Deref for OptionKey<T>
[src]
type Target = OptionNumber
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T> Debug for OptionKey<T>
[src]
impl<T: Hash> Hash for OptionKey<T>
[src]
Auto Trait Implementations
impl<T> Unpin for OptionKey<T>
impl<T> !Sync for OptionKey<T>
impl<T> UnwindSafe for OptionKey<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> RefUnwindSafe for OptionKey<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,