[][src]Struct btle::hci::OCF

pub struct OCF(_);

10 bit OCF (Opcode Command Field)

Methods

impl OCF[src]

pub fn new(ocf: u16) -> Self[src]

Creates a new 10-bit OCF

Panics

Panics if ocf > OCF_MAX (if ocf isn't 10-bit)

pub fn new_masked(ocf: u16) -> Self[src]

Creates a new 10-bit OCF by masking a u16

Trait Implementations

impl Clone for OCF[src]

impl Copy for OCF[src]

impl Debug for OCF[src]

impl Default for OCF[src]

impl Eq for OCF[src]

impl From<LEControllerOpcode> for OCF[src]

impl From<LinkControlOpcode> for OCF[src]

impl From<OCF> for u16[src]

impl Hash for OCF[src]

impl Ord for OCF[src]

impl PartialEq<OCF> for OCF[src]

impl PartialOrd<OCF> for OCF[src]

impl StructuralEq for OCF[src]

impl StructuralPartialEq for OCF[src]

impl TryFrom<OCF> for LEControllerOpcode[src]

type Error = HCIConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for OCF

impl Send for OCF

impl Sync for OCF

impl Unpin for OCF

impl UnwindSafe for OCF

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.