pub enum LogListenerSafeRequest {
Log {
log: LogMessage,
responder: LogListenerSafeLogResponder,
},
LogMany {
log: Vec<LogMessage>,
responder: LogListenerSafeLogManyResponder,
},
Done {
control_handle: LogListenerSafeControlHandle,
},
}
Expand description
A listener who will notify the Log
of the receipt of each message.
Variants§
Log
Called for single messages.
The return value is used for flow control, and implementers should acknowledge receipt of each message in order to continue receiving future messages.
LogMany
Called when serving cached logs.
Max logs size per call is MAX_LOG_MANY_SIZE_BYTES
bytes.
The return value is used for flow control, and implementers should acknowledge receipt of each batch in order to continue receiving future messages.
Done
Called when this listener was passed to DumpLogsSafe()
and all cached logs have been sent.
Fields
§
control_handle: LogListenerSafeControlHandle
Implementations§
Source§impl LogListenerSafeRequest
impl LogListenerSafeRequest
pub fn into_log(self) -> Option<(LogMessage, LogListenerSafeLogResponder)>
pub fn into_log_many( self, ) -> Option<(Vec<LogMessage>, LogListenerSafeLogManyResponder)>
pub fn into_done(self) -> Option<LogListenerSafeControlHandle>
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 LogListenerSafeRequest
impl !RefUnwindSafe for LogListenerSafeRequest
impl Send for LogListenerSafeRequest
impl Sync for LogListenerSafeRequest
impl Unpin for LogListenerSafeRequest
impl !UnwindSafe for LogListenerSafeRequest
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