pub struct LogFlusherProxy { /* private fields */ }
Implementations§
Source§impl LogFlusherProxy
impl LogFlusherProxy
Sourcepub fn take_event_stream(&self) -> LogFlusherEventStream
pub fn take_event_stream(&self) -> LogFlusherEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn wait_until_flushed(&self) -> QueryResponseFut<(), FDomainResourceDialect>
pub fn wait_until_flushed(&self) -> QueryResponseFut<(), FDomainResourceDialect>
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 Clone for LogFlusherProxy
impl Clone for LogFlusherProxy
Source§fn clone(&self) -> LogFlusherProxy
fn clone(&self) -> LogFlusherProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LogFlusherProxy
impl Debug for LogFlusherProxy
Source§impl LogFlusherProxyInterface for LogFlusherProxy
impl LogFlusherProxyInterface for LogFlusherProxy
type WaitUntilFlushedResponseFut = QueryResponseFut<(), FDomainResourceDialect>
fn wait_until_flushed(&self) -> Self::WaitUntilFlushedResponseFut
Source§impl Proxy for LogFlusherProxy
impl Proxy for LogFlusherProxy
Source§type Protocol = LogFlusherMarker
type Protocol = LogFlusherMarker
Proxy
controls.