pub enum PeriodicAdvertisingSyncRequest {
WatchAdvertisingReport {
responder: PeriodicAdvertisingSyncWatchAdvertisingReportResponder,
},
SyncToSubevents {
payload: PeriodicAdvertisingSyncSyncToSubeventsRequest,
responder: PeriodicAdvertisingSyncSyncToSubeventsResponder,
},
Cancel {
control_handle: PeriodicAdvertisingSyncControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: PeriodicAdvertisingSyncControlHandle,
method_type: MethodType,
},
}
Expand description
Closed by the server when the sync fails to be established or is lost.
Variants§
WatchAdvertisingReport
Returns the next advertising report(s). Hangs until the next advertisement is received. Only one call may be pending at a time.
Fields
SyncToSubevents
Synchronize to subevents of this periodic advertisement.
- error FAILED: The synchronization failed.
Fields
Cancel
The server will end the synchronization and then close the protocol. Synchronization will not be cancelled if other clients are synchronized to the same Periodic Advertisement. Synchronization can also be cancelled by closing the protocol on the client end.
Fields
§
control_handle: PeriodicAdvertisingSyncControlHandle
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: PeriodicAdvertisingSyncControlHandle
§
method_type: MethodType
Implementations§
Source§impl PeriodicAdvertisingSyncRequest
impl PeriodicAdvertisingSyncRequest
pub fn into_watch_advertising_report( self, ) -> Option<PeriodicAdvertisingSyncWatchAdvertisingReportResponder>
pub fn into_sync_to_subevents( self, ) -> Option<(PeriodicAdvertisingSyncSyncToSubeventsRequest, PeriodicAdvertisingSyncSyncToSubeventsResponder)>
pub fn into_cancel(self) -> Option<PeriodicAdvertisingSyncControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeriodicAdvertisingSyncRequest
impl !RefUnwindSafe for PeriodicAdvertisingSyncRequest
impl Send for PeriodicAdvertisingSyncRequest
impl Sync for PeriodicAdvertisingSyncRequest
impl Unpin for PeriodicAdvertisingSyncRequest
impl !UnwindSafe for PeriodicAdvertisingSyncRequest
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