pub struct LegacyAdvertisingState {
pub enabled: bool,
pub type_: Option<LegacyAdvertisingType>,
pub address_type: Option<AddressType>,
pub interval_min: Option<u16>,
pub interval_max: Option<u16>,
pub advertising_data: Option<AdvertisingData>,
pub scan_response: Option<AdvertisingData>,
}
Fields§
§enabled: bool
§type_: Option<LegacyAdvertisingType>
§address_type: Option<AddressType>
§interval_min: Option<u16>
§interval_max: Option<u16>
§advertising_data: Option<AdvertisingData>
§scan_response: Option<AdvertisingData>
Trait Implementations§
Source§impl Clone for LegacyAdvertisingState
impl Clone for LegacyAdvertisingState
Source§fn clone(&self) -> LegacyAdvertisingState
fn clone(&self) -> LegacyAdvertisingState
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 LegacyAdvertisingState
impl Debug for LegacyAdvertisingState
Source§impl Default for LegacyAdvertisingState
impl Default for LegacyAdvertisingState
Source§fn default() -> LegacyAdvertisingState
fn default() -> LegacyAdvertisingState
Returns the “default value” for a type. Read more
Source§impl From<LegacyAdvertisingState> for LegacyAdvertisingState
impl From<LegacyAdvertisingState> for LegacyAdvertisingState
Source§fn from(src: LegacyAdvertisingState) -> LegacyAdvertisingState
fn from(src: LegacyAdvertisingState) -> LegacyAdvertisingState
Converts to this type from the input type.
Source§impl PartialEq for LegacyAdvertisingState
impl PartialEq for LegacyAdvertisingState
impl StructuralPartialEq for LegacyAdvertisingState
Auto Trait Implementations§
impl Freeze for LegacyAdvertisingState
impl RefUnwindSafe for LegacyAdvertisingState
impl Send for LegacyAdvertisingState
impl Sync for LegacyAdvertisingState
impl Unpin for LegacyAdvertisingState
impl UnwindSafe for LegacyAdvertisingState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)