Struct coap_lite::block_handler::RequestCacheKey
source · pub struct RequestCacheKey<Endpoint: Ord + Clone> { /* private fields */ }Expand description
Cache key for uniquely identifying a request.
Trait Implementations§
source§impl<Endpoint: Clone + Ord + Clone> Clone for RequestCacheKey<Endpoint>
impl<Endpoint: Clone + Ord + Clone> Clone for RequestCacheKey<Endpoint>
source§fn clone(&self) -> RequestCacheKey<Endpoint>
fn clone(&self) -> RequestCacheKey<Endpoint>
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<Endpoint: Ord + Clone> From<&CoapRequest<Endpoint>> for RequestCacheKey<Endpoint>
impl<Endpoint: Ord + Clone> From<&CoapRequest<Endpoint>> for RequestCacheKey<Endpoint>
source§fn from(request: &CoapRequest<Endpoint>) -> Self
fn from(request: &CoapRequest<Endpoint>) -> Self
Converts to this type from the input type.
source§impl<Endpoint: Ord + Ord + Clone> Ord for RequestCacheKey<Endpoint>
impl<Endpoint: Ord + Ord + Clone> Ord for RequestCacheKey<Endpoint>
source§fn cmp(&self, other: &RequestCacheKey<Endpoint>) -> Ordering
fn cmp(&self, other: &RequestCacheKey<Endpoint>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Endpoint: PartialEq + Ord + Clone> PartialEq<RequestCacheKey<Endpoint>> for RequestCacheKey<Endpoint>
impl<Endpoint: PartialEq + Ord + Clone> PartialEq<RequestCacheKey<Endpoint>> for RequestCacheKey<Endpoint>
source§fn eq(&self, other: &RequestCacheKey<Endpoint>) -> bool
fn eq(&self, other: &RequestCacheKey<Endpoint>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<Endpoint: PartialOrd + Ord + Clone> PartialOrd<RequestCacheKey<Endpoint>> for RequestCacheKey<Endpoint>
impl<Endpoint: PartialOrd + Ord + Clone> PartialOrd<RequestCacheKey<Endpoint>> for RequestCacheKey<Endpoint>
source§fn partial_cmp(&self, other: &RequestCacheKey<Endpoint>) -> Option<Ordering>
fn partial_cmp(&self, other: &RequestCacheKey<Endpoint>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<Endpoint: Eq + Ord + Clone> Eq for RequestCacheKey<Endpoint>
impl<Endpoint: Ord + Clone> StructuralEq for RequestCacheKey<Endpoint>
impl<Endpoint: Ord + Clone> StructuralPartialEq for RequestCacheKey<Endpoint>
Auto Trait Implementations§
impl<Endpoint> RefUnwindSafe for RequestCacheKey<Endpoint>where Endpoint: RefUnwindSafe,
impl<Endpoint> Send for RequestCacheKey<Endpoint>where Endpoint: Send,
impl<Endpoint> Sync for RequestCacheKey<Endpoint>where Endpoint: Sync,
impl<Endpoint> Unpin for RequestCacheKey<Endpoint>where Endpoint: Unpin,
impl<Endpoint> UnwindSafe for RequestCacheKey<Endpoint>where Endpoint: UnwindSafe,
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