pub enum LogSinkRequest {
WaitForInterestChange {
responder: LogSinkWaitForInterestChangeResponder,
},
ConnectStructured {
socket: Socket,
control_handle: LogSinkControlHandle,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: LogSinkControlHandle,
method_type: MethodType,
},
}
Expand description
Drains a program’s logs.
Variants§
WaitForInterestChange
LogSink implementers will return to this hanging-get whenever the scope of their interest changes. Clients are expected to emit messages based on the registered Interest. In the event that an empty interest is conveyed, clients should emit messages based on their default e.g. compile time configuration. Each client may only poll this once at a time. Invoking WaitForInterestChange a second time before the first call returns will result in an error being returned.
Fields
§
responder: LogSinkWaitForInterestChangeResponder
ConnectStructured
Send this socket to be drained, using the structured logs format.
See Encoding structured records for what is expected to be received over the socket.
#[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: LogSinkControlHandle
§
method_type: MethodType
Implementations§
Source§impl LogSinkRequest
impl LogSinkRequest
pub fn into_wait_for_interest_change( self, ) -> Option<LogSinkWaitForInterestChangeResponder>
pub fn into_connect_structured(self) -> Option<(Socket, LogSinkControlHandle)>
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 LogSinkRequest
impl !RefUnwindSafe for LogSinkRequest
impl Send for LogSinkRequest
impl Sync for LogSinkRequest
impl Unpin for LogSinkRequest
impl !UnwindSafe for LogSinkRequest
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