Struct PeriodicAdvertisingReport
pub struct PeriodicAdvertisingReport {
pub rssi: Option<i8>,
pub data: Option<ScanData>,
pub event_counter: Option<u16>,
pub subevent: Option<u8>,
pub timestamp: Option<i64>,
/* private fields */
}
Fields§
§rssi: Option<i8>
The signal strength of the advertising report.
data: Option<ScanData>
The advertising data payload sent with this report.
event_counter: Option<u16>
The event counter of the event that the advertising packet was received in. This can be used to reply to the report.
subevent: Option<u8>
The subevent number of the report. Only present if the packet was received in a subevent.
timestamp: Option<i64>
The timestamp when the report was received by the host.
Trait Implementations§
§impl Clone for PeriodicAdvertisingReport
impl Clone for PeriodicAdvertisingReport
§fn clone(&self) -> PeriodicAdvertisingReport
fn clone(&self) -> PeriodicAdvertisingReport
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 more§impl Debug for PeriodicAdvertisingReport
impl Debug for PeriodicAdvertisingReport
§impl<D> Decode<PeriodicAdvertisingReport, D> for PeriodicAdvertisingReportwhere
D: ResourceDialect,
impl<D> Decode<PeriodicAdvertisingReport, D> for PeriodicAdvertisingReportwhere
D: ResourceDialect,
§fn new_empty() -> PeriodicAdvertisingReport
fn new_empty() -> PeriodicAdvertisingReport
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for PeriodicAdvertisingReport
impl Default for PeriodicAdvertisingReport
§fn default() -> PeriodicAdvertisingReport
fn default() -> PeriodicAdvertisingReport
Returns the “default value” for a type. Read more
§impl<D> Encode<PeriodicAdvertisingReport, D> for &PeriodicAdvertisingReportwhere
D: ResourceDialect,
impl<D> Encode<PeriodicAdvertisingReport, D> for &PeriodicAdvertisingReportwhere
D: ResourceDialect,
§impl PartialEq for PeriodicAdvertisingReport
impl PartialEq for PeriodicAdvertisingReport
§impl TypeMarker for PeriodicAdvertisingReport
impl TypeMarker for PeriodicAdvertisingReport
§type Owned = PeriodicAdvertisingReport
type Owned = PeriodicAdvertisingReport
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for PeriodicAdvertisingReport
impl ValueTypeMarker for PeriodicAdvertisingReport
§type Borrowed<'a> = &'a PeriodicAdvertisingReport
type Borrowed<'a> = &'a PeriodicAdvertisingReport
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<PeriodicAdvertisingReport as TypeMarker>::Owned,
) -> <PeriodicAdvertisingReport as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PeriodicAdvertisingReport as TypeMarker>::Owned, ) -> <PeriodicAdvertisingReport as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Persistable for PeriodicAdvertisingReport
impl StructuralPartialEq for PeriodicAdvertisingReport
Auto Trait Implementations§
impl Freeze for PeriodicAdvertisingReport
impl RefUnwindSafe for PeriodicAdvertisingReport
impl Send for PeriodicAdvertisingReport
impl Sync for PeriodicAdvertisingReport
impl Unpin for PeriodicAdvertisingReport
impl UnwindSafe for PeriodicAdvertisingReport
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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