pub enum SessionListenerRequest {
OnScenicError {
error: String,
control_handle: SessionListenerControlHandle,
},
OnScenicEvent {
events: Vec<Event>,
control_handle: SessionListenerControlHandle,
},
}
Expand description
Listens for events which occur within the session.
Variants§
OnScenicError
Called when an error has occurred and the session will be torn down.
OnScenicEvent
Called to deliver a batch of one or more events to the listener.
Use SetEventMaskCmd
to enable event delivery for a resource.
Implementations§
Source§impl SessionListenerRequest
impl SessionListenerRequest
pub fn into_on_scenic_error( self, ) -> Option<(String, SessionListenerControlHandle)>
pub fn into_on_scenic_event( self, ) -> Option<(Vec<Event>, SessionListenerControlHandle)>
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 SessionListenerRequest
impl !RefUnwindSafe for SessionListenerRequest
impl Send for SessionListenerRequest
impl Sync for SessionListenerRequest
impl Unpin for SessionListenerRequest
impl !UnwindSafe for SessionListenerRequest
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