Enum coap_numbers::option::Criticality
source · pub enum Criticality {
Critical,
Elective,
}
Expand description
Classification of options by their default end-point behavior
Variants§
Critical
Servers that receive such an option and do not know it MUST return 4.02 Bad Option, and clients MUST reject responses carrying any such.
Elective
Endpoints receiving an unrecognized option oif this kind MUST silently ignore them.
Trait Implementations§
source§impl Clone for Criticality
impl Clone for Criticality
source§fn clone(&self) -> Criticality
fn clone(&self) -> Criticality
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 Criticality
impl Debug for Criticality
source§impl PartialEq for Criticality
impl PartialEq for Criticality
source§fn eq(&self, other: &Criticality) -> bool
fn eq(&self, other: &Criticality) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Criticality
impl StructuralPartialEq for Criticality
Auto Trait Implementations§
impl Freeze for Criticality
impl RefUnwindSafe for Criticality
impl Send for Criticality
impl Sync for Criticality
impl Unpin for Criticality
impl UnwindSafe for Criticality
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