pub enum LogSinkRequest {
Connect {
socket: Socket,
control_handle: LogSinkControlHandle,
},
WaitForInterestChange {
responder: LogSinkWaitForInterestChangeResponder,
},
ConnectStructured {
socket: Socket,
control_handle: LogSinkControlHandle,
},
}
Expand description
Drains a program’s logs.
Variants§
Connect
Send this socket to be drained.
See wire_format.h for what is expected to be received over the socket.
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.
Implementations§
Source§impl LogSinkRequest
impl LogSinkRequest
pub fn into_connect(self) -> Option<(Socket, LogSinkControlHandle)>
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