pub enum SessionRequest {
Configure {
payload: SessionConfigureRequest,
responder: SessionConfigureResponder,
},
Start {
payload: SessionStartRequest,
responder: SessionStartResponder,
},
Stop {
responder: SessionStopResponder,
},
Reset {
responder: SessionResetResponder,
},
}
Variants§
Configure
Set up and prepare to profile
Start
Begin profiling and optionally begin writing data to the configured socket
Stop
End the profiling session and write out data to the earlier configured socket if not already writing.
Fields
§
responder: SessionStopResponder
Reset
Clean up and unconfigure the profiler. Flushes the remaining data and closes the provided socket. Doesn’t return until all data has been successfully written.
Fields
§
responder: SessionResetResponder
Implementations§
Source§impl SessionRequest
impl SessionRequest
pub fn into_configure( self, ) -> Option<(SessionConfigureRequest, SessionConfigureResponder)>
pub fn into_start(self) -> Option<(SessionStartRequest, SessionStartResponder)>
pub fn into_stop(self) -> Option<SessionStopResponder>
pub fn into_reset(self) -> Option<SessionResetResponder>
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 SessionRequest
impl !RefUnwindSafe for SessionRequest
impl Send for SessionRequest
impl Sync for SessionRequest
impl Unpin for SessionRequest
impl !UnwindSafe for SessionRequest
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