pub struct LogFlusherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LogFlusherSynchronousProxy
impl LogFlusherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LogFlusherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LogFlusherEvent, 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_until_flushed(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn wait_until_flushed( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Flushes all pending logs through the logging pipeline to the serial port. Logs written to sockets prior to the call to Flush are guaranteed to be fully written to serial when this returns. Logs written to sockets after this call has been received by Archivist are not guaranteed to be flushed. Additionally, sockets must actually be connected to the Archivist before this call is made. If a socket hasn’t been received by Archivist yet, those logs may be dropped. To ensure that logs are properly flushed, make sure to wait for the initial interest when logging. Important note: This may be called from the host, but host sockets will NOT be flushed by this method. If you write data from the host (not on the device, there is no guarantee that such logs will ever be printed).
Trait Implementations§
Source§impl Debug for LogFlusherSynchronousProxy
impl Debug for LogFlusherSynchronousProxy
Source§impl From<Channel> for LogFlusherSynchronousProxy
impl From<Channel> for LogFlusherSynchronousProxy
Source§impl From<LogFlusherSynchronousProxy> for Handle
impl From<LogFlusherSynchronousProxy> for Handle
Source§fn from(value: LogFlusherSynchronousProxy) -> Self
fn from(value: LogFlusherSynchronousProxy) -> Self
Source§impl FromClient for LogFlusherSynchronousProxy
impl FromClient for LogFlusherSynchronousProxy
Source§type Protocol = LogFlusherMarker
type Protocol = LogFlusherMarker
Source§fn from_client(value: ClientEnd<LogFlusherMarker>) -> Self
fn from_client(value: ClientEnd<LogFlusherMarker>) -> Self
Source§impl SynchronousProxy for LogFlusherSynchronousProxy
impl SynchronousProxy for LogFlusherSynchronousProxy
Source§type Proxy = LogFlusherProxy
type Proxy = LogFlusherProxy
Source§type Protocol = LogFlusherMarker
type Protocol = LogFlusherMarker
Proxy
controls.