pub enum SessionManagerRequest {
GetProviders {
responder: SessionManagerGetProvidersResponder,
},
GetKnownCategories {
responder: SessionManagerGetKnownCategoriesResponder,
},
StartTraceSession {
config: TraceConfig,
options: TraceOptions,
responder: SessionManagerStartTraceSessionResponder,
},
EndTraceSession {
task_id: u64,
output: Socket,
responder: SessionManagerEndTraceSessionResponder,
},
Status {
responder: SessionManagerStatusResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: SessionManagerControlHandle,
method_type: MethodType,
},
}
Variants§
GetProviders
Return the set of registered providers.
Fields
§
responder: SessionManagerGetProvidersResponder
GetKnownCategories
Gets the known categories.
Fields
§
responder: SessionManagerGetKnownCategoriesResponder
StartTraceSession
Starts a Trace session.
Fields
§
config: TraceConfig
§
options: TraceOptions
§
responder: SessionManagerStartTraceSessionResponder
EndTraceSession
Ends the trace session. If task_id is non-zero, then only the trace task with the given id is checked. Note: Currently there is only 1 trace task active at a time, so the task_id is of little value at this time.
Status
Returns the status of the current trace session.
Fields
§
responder: SessionManagerStatusResponder
#[non_exhaustive]_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: SessionManagerControlHandle
§
method_type: MethodType
Implementations§
Source§impl SessionManagerRequest
impl SessionManagerRequest
pub fn into_get_providers(self) -> Option<SessionManagerGetProvidersResponder>
pub fn into_get_known_categories( self, ) -> Option<SessionManagerGetKnownCategoriesResponder>
pub fn into_start_trace_session( self, ) -> Option<(TraceConfig, TraceOptions, SessionManagerStartTraceSessionResponder)>
pub fn into_end_trace_session( self, ) -> Option<(u64, Socket, SessionManagerEndTraceSessionResponder)>
pub fn into_status(self) -> Option<SessionManagerStatusResponder>
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 SessionManagerRequest
impl !RefUnwindSafe for SessionManagerRequest
impl Send for SessionManagerRequest
impl Sync for SessionManagerRequest
impl Unpin for SessionManagerRequest
impl !UnwindSafe for SessionManagerRequest
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