pub struct LogSinkSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LogSinkSynchronousProxy
impl LogSinkSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LogSinkEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LogSinkEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
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,
___deadline: MonotonicInstant,
) -> Result<LogSinkWaitForInterestChangeResult, Error>
pub fn wait_for_interest_change( &self, ___deadline: MonotonicInstant, ) -> Result<LogSinkWaitForInterestChangeResult, Error>
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 Debug for LogSinkSynchronousProxy
impl Debug for LogSinkSynchronousProxy
Source§impl SynchronousProxy for LogSinkSynchronousProxy
impl SynchronousProxy for LogSinkSynchronousProxy
Source§type Proxy = LogSinkProxy
type Proxy = LogSinkProxy
Source§type Protocol = LogSinkMarker
type Protocol = LogSinkMarker
Proxy
controls.