Enum coap_lite::ObserveOption
source · pub enum ObserveOption {
Register,
Deregister,
}
Expand description
The values of the observe option.
Variants§
Trait Implementations§
source§impl Clone for ObserveOption
impl Clone for ObserveOption
source§fn clone(&self) -> ObserveOption
fn clone(&self) -> ObserveOption
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 ObserveOption
impl Debug for ObserveOption
source§impl From<ObserveOption> for usize
impl From<ObserveOption> for usize
source§fn from(observe: ObserveOption) -> usize
fn from(observe: ObserveOption) -> usize
Converts to this type from the input type.
source§impl PartialEq for ObserveOption
impl PartialEq for ObserveOption
source§fn eq(&self, other: &ObserveOption) -> bool
fn eq(&self, other: &ObserveOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<usize> for ObserveOption
impl TryFrom<usize> for ObserveOption
§type Error = InvalidObserve
type Error = InvalidObserve
The type returned in the event of a conversion error.
source§fn try_from(number: usize) -> Result<ObserveOption, InvalidObserve>
fn try_from(number: usize) -> Result<ObserveOption, InvalidObserve>
Performs the conversion.
impl Copy for ObserveOption
impl StructuralPartialEq for ObserveOption
Auto Trait Implementations§
impl Freeze for ObserveOption
impl RefUnwindSafe for ObserveOption
impl Send for ObserveOption
impl Sync for ObserveOption
impl Unpin for ObserveOption
impl UnwindSafe for ObserveOption
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