Struct rustable::advertising::Advertisement[][src]

pub struct Advertisement {
    pub services: Vec<UUID>,
    pub solicit: Vec<UUID>,
    pub name: Option<String>,
    pub typ: AdType,
    pub duration: u16,
    pub timeout: u16,
    // some fields omitted
}

Fields

services: Vec<UUID>solicit: Vec<UUID>name: Option<String>typ: AdTypeduration: u16timeout: u16

Implementations

impl Advertisement[src]

pub fn new_with_conn(hci: &Adapter, conn: Arc<RpcConn>) -> Self[src]

pub async fn new(hci: &Adapter) -> Result<Self, Error>[src]

pub async fn set_dest(&mut self, dest: Option<String>) -> Result<(), Error>[src]

pub async fn register(self, base_path: &str) -> Result<AdWorker, Error>[src]

Trait Implementations

impl Clone for Advertisement[src]

Auto Trait Implementations

impl !RefUnwindSafe for Advertisement

impl Send for Advertisement

impl Sync for Advertisement

impl Unpin for Advertisement

impl !UnwindSafe for Advertisement

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.