pub struct LogSinkProxy { /* private fields */ }
Implementations§
Source§impl LogSinkProxy
impl LogSinkProxy
Sourcepub fn take_event_stream(&self) -> LogSinkEventStream
pub fn take_event_stream(&self) -> LogSinkEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn connect(&self, socket: Socket) -> Result<(), Error>
pub fn connect(&self, socket: Socket) -> Result<(), Error>
Send this socket to be drained.
See wire_format.h for what is expected to be received over the socket.
Sourcepub fn wait_for_interest_change(
&self,
) -> QueryResponseFut<LogSinkWaitForInterestChangeResult, DefaultFuchsiaResourceDialect>
pub fn wait_for_interest_change( &self, ) -> QueryResponseFut<LogSinkWaitForInterestChangeResult, DefaultFuchsiaResourceDialect>
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.
Sourcepub fn connect_structured(&self, socket: Socket) -> Result<(), Error>
pub fn connect_structured(&self, socket: Socket) -> Result<(), Error>
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.
Trait Implementations§
Source§impl Clone for LogSinkProxy
impl Clone for LogSinkProxy
Source§fn clone(&self) -> LogSinkProxy
fn clone(&self) -> LogSinkProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LogSinkProxy
impl Debug for LogSinkProxy
Source§impl LogSinkProxyInterface for LogSinkProxy
impl LogSinkProxyInterface for LogSinkProxy
type WaitForInterestChangeResponseFut = QueryResponseFut<Result<Interest, InterestChangeError>>
fn connect(&self, socket: Socket) -> Result<(), Error>
fn wait_for_interest_change(&self) -> Self::WaitForInterestChangeResponseFut
fn connect_structured(&self, socket: Socket) -> Result<(), Error>
Source§impl Proxy for LogSinkProxy
impl Proxy for LogSinkProxy
Source§type Protocol = LogSinkMarker
type Protocol = LogSinkMarker
Proxy
controls.