Enum coap_lite::ObserveOption
source · [−]pub enum ObserveOption {
Register,
Deregister,
}Expand description
The values of the observe option.
Variants
Register
Deregister
Trait Implementations
sourceimpl Clone for ObserveOption
impl Clone for ObserveOption
sourcefn clone(&self) -> ObserveOption
fn clone(&self) -> ObserveOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ObserveOption
impl Debug for ObserveOption
sourceimpl From<ObserveOption> for usize
impl From<ObserveOption> for usize
sourcefn from(observe: ObserveOption) -> usize
fn from(observe: ObserveOption) -> usize
Converts to this type from the input type.
sourceimpl PartialEq<ObserveOption> for ObserveOption
impl PartialEq<ObserveOption> for ObserveOption
sourceimpl 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.
sourcefn 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 RefUnwindSafe for ObserveOption
impl Send for ObserveOption
impl Sync for ObserveOption
impl Unpin for ObserveOption
impl UnwindSafe for ObserveOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more