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 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 From<Channel> for LogSinkSynchronousProxy
impl From<Channel> for LogSinkSynchronousProxy
Source§impl From<LogSinkSynchronousProxy> for Handle
impl From<LogSinkSynchronousProxy> for Handle
Source§fn from(value: LogSinkSynchronousProxy) -> Self
fn from(value: LogSinkSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for LogSinkSynchronousProxy
impl FromClient for LogSinkSynchronousProxy
Source§type Protocol = LogSinkMarker
type Protocol = LogSinkMarker
The protocol.
Source§fn from_client(value: ClientEnd<LogSinkMarker>) -> Self
fn from_client(value: ClientEnd<LogSinkMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for LogSinkSynchronousProxy
impl SynchronousProxy for LogSinkSynchronousProxy
Source§type Proxy = LogSinkProxy
type Proxy = LogSinkProxy
The async proxy for the same protocol.
Source§type Protocol = LogSinkMarker
type Protocol = LogSinkMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for LogSinkSynchronousProxy
impl RefUnwindSafe for LogSinkSynchronousProxy
impl Send for LogSinkSynchronousProxy
impl Sync for LogSinkSynchronousProxy
impl Unpin for LogSinkSynchronousProxy
impl UnwindSafe for LogSinkSynchronousProxy
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