pub enum NotificationRegistrationRequest {
NewEventReport {
payload: NotificationRegistrationNewEventReportRequest,
responder: NotificationRegistrationNewEventReportResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: NotificationRegistrationControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol for relaying event reports from the peer’s message repositories to the client. This protocol exists to support the Notification Feature of MAP.
- request
notification
Notification received from the peer. - request
received
The monotonic time when the notification was received from the peer.
Variants§
NewEventReport
Relays incoming event report from the peer as a Notification.
Fields
_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: NotificationRegistrationControlHandle
§
method_type: MethodType
Implementations§
Source§impl NotificationRegistrationRequest
impl NotificationRegistrationRequest
pub fn into_new_event_report( self, ) -> Option<(NotificationRegistrationNewEventReportRequest, NotificationRegistrationNewEventReportResponder)>
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 NotificationRegistrationRequest
impl !RefUnwindSafe for NotificationRegistrationRequest
impl Send for NotificationRegistrationRequest
impl Sync for NotificationRegistrationRequest
impl Unpin for NotificationRegistrationRequest
impl !UnwindSafe for NotificationRegistrationRequest
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