pub struct AdvEventProps(/* private fields */);
Expand description
AdvEventProps
Implementations§
Source§impl AdvEventProps
impl AdvEventProps
Sourcepub fn into_inner(self) -> [u8; 2]
pub fn into_inner(self) -> [u8; 2]
Get the inner representation.
pub const fn connectable_adv(&self) -> bool
pub const fn set_connectable_adv(self, val: bool) -> Self
pub const fn scannable_adv(&self) -> bool
pub const fn set_scannable_adv(self, val: bool) -> Self
pub const fn directed_adv(&self) -> bool
pub const fn set_directed_adv(self, val: bool) -> Self
pub const fn high_duty_cycle_directed_connectable_adv(&self) -> bool
pub const fn set_high_duty_cycle_directed_connectable_adv( self, val: bool, ) -> Self
pub const fn legacy_adv(&self) -> bool
pub const fn set_legacy_adv(self, val: bool) -> Self
pub const fn anonymous_adv(&self) -> bool
pub const fn set_anonymous_adv(self, val: bool) -> Self
pub const fn include_tx_power(&self) -> bool
pub const fn set_include_tx_power(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for AdvEventProps
impl ByteAlignedValue for AdvEventProps
Source§fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
Obtain a reference to this type from a byte slice. Read more
Source§impl Clone for AdvEventProps
impl Clone for AdvEventProps
Source§fn clone(&self) -> AdvEventProps
fn clone(&self) -> AdvEventProps
Returns a duplicate 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 AdvEventProps
impl Debug for AdvEventProps
Source§impl Default for AdvEventProps
impl Default for AdvEventProps
Source§fn default() -> AdvEventProps
fn default() -> AdvEventProps
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for AdvEventProps
impl FixedSizeValue for AdvEventProps
Source§impl<'de> FromHciBytes<'de> for &'de AdvEventProps
impl<'de> FromHciBytes<'de> for &'de AdvEventProps
Source§fn from_hci_bytes(
data: &'de [u8],
) -> Result<(Self, &'de [u8]), FromHciBytesError>
fn from_hci_bytes( data: &'de [u8], ) -> Result<(Self, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl Hash for AdvEventProps
impl Hash for AdvEventProps
Source§impl Ord for AdvEventProps
impl Ord for AdvEventProps
Source§fn cmp(&self, other: &AdvEventProps) -> Ordering
fn cmp(&self, other: &AdvEventProps) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AdvEventProps
impl PartialEq for AdvEventProps
Source§impl PartialOrd for AdvEventProps
impl PartialOrd for AdvEventProps
impl Copy for AdvEventProps
impl Eq for AdvEventProps
impl StructuralPartialEq for AdvEventProps
Auto Trait Implementations§
impl Freeze for AdvEventProps
impl RefUnwindSafe for AdvEventProps
impl Send for AdvEventProps
impl Sync for AdvEventProps
impl Unpin for AdvEventProps
impl UnwindSafe for AdvEventProps
Blanket Implementations§
Source§impl<T> AsHciBytes for Twhere
T: FixedSizeValue,
impl<T> AsHciBytes for Twhere
T: FixedSizeValue,
Source§fn as_hci_bytes(&self) -> &[u8]
fn as_hci_bytes(&self) -> &[u8]
Get the byte representation of this type.
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§impl<'de, T> FromHciBytes<'de> for Twhere
T: FixedSizeValue,
impl<'de, T> FromHciBytes<'de> for Twhere
T: FixedSizeValue,
Source§fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl<'de, T> ReadHci<'de> for Twhere
T: FixedSizeValue,
impl<'de, T> ReadHci<'de> for Twhere
T: FixedSizeValue,
Source§const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();
const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();
Max length read by this type.
Source§fn read_hci<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
fn read_hci<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
Read this type from the provided reader.
Source§async fn read_hci_async<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
async fn read_hci_async<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
Read this type from the provided reader, async version.