pub enum LogRequest {
ListenSafe {
log_listener: ClientEnd<LogListenerSafeMarker>,
options: Option<Box<LogFilterOptions>>,
control_handle: LogControlHandle,
},
DumpLogsSafe {
log_listener: ClientEnd<LogListenerSafeMarker>,
options: Option<Box<LogFilterOptions>>,
control_handle: LogControlHandle,
},
ListenSafeWithSelectors {
log_listener: ClientEnd<LogListenerSafeMarker>,
options: Option<Box<LogFilterOptions>>,
selectors: Vec<LogInterestSelector>,
control_handle: LogControlHandle,
},
}
Expand description
Interface for LogListenerSafe to register to listen to logs.
Variants§
ListenSafe
Dumps all cached logs by calling LogMany() in batches followed by Log() for each new log
message.
A null options
indicates no filtering is requested.
Fields
§
log_listener: ClientEnd<LogListenerSafeMarker>
§
options: Option<Box<LogFilterOptions>>
§
control_handle: LogControlHandle
DumpLogsSafe
Dumps all cached logs by calling LogMany() followed by Done() on log_listener
.
A null options
indicates no filtering is requested.
Fields
§
log_listener: ClientEnd<LogListenerSafeMarker>
§
options: Option<Box<LogFilterOptions>>
§
control_handle: LogControlHandle
ListenSafeWithSelectors
Listens to new log entries by calling Log() on log_listener
.
A null options
indicates no filtering is requested.
Fields
§
log_listener: ClientEnd<LogListenerSafeMarker>
§
options: Option<Box<LogFilterOptions>>
§
selectors: Vec<LogInterestSelector>
§
control_handle: LogControlHandle
Implementations§
Source§impl LogRequest
impl LogRequest
pub fn into_listen_safe( self, ) -> Option<(ClientEnd<LogListenerSafeMarker>, Option<Box<LogFilterOptions>>, LogControlHandle)>
pub fn into_dump_logs_safe( self, ) -> Option<(ClientEnd<LogListenerSafeMarker>, Option<Box<LogFilterOptions>>, LogControlHandle)>
pub fn into_listen_safe_with_selectors( self, ) -> Option<(ClientEnd<LogListenerSafeMarker>, Option<Box<LogFilterOptions>>, Vec<LogInterestSelector>, LogControlHandle)>
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 LogRequest
impl !RefUnwindSafe for LogRequest
impl Send for LogRequest
impl Sync for LogRequest
impl Unpin for LogRequest
impl !UnwindSafe for LogRequest
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