pub struct Advertisement {
pub device_name: Option<String>,
pub discoverable: bool,
pub primary_service: Uuid,
pub service_uuids: Vec<Uuid>,
}Fields§
§device_name: Option<String>§discoverable: bool§primary_service: Uuid§service_uuids: Vec<Uuid>Implementations§
Source§impl Advertisement
impl Advertisement
pub fn advertise(self) -> Result<AdvertisementHandle, Error>
Trait Implementations§
Source§impl Debug for Advertisement
impl Debug for Advertisement
Source§impl Default for Advertisement
impl Default for Advertisement
Source§fn default() -> Advertisement
fn default() -> Advertisement
Returns the “default value” for a type. Read more
Source§impl From<Advertisement> for Advertisement
impl From<Advertisement> for Advertisement
Source§fn from(value: Advertisement) -> Self
fn from(value: Advertisement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Advertisement
impl RefUnwindSafe for Advertisement
impl Send for Advertisement
impl Sync for Advertisement
impl Unpin for Advertisement
impl UnwindSafe for Advertisement
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