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.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Auto Trait Implementations§
impl Freeze for LogFlusherProxy
impl !RefUnwindSafe for LogFlusherProxy
impl Send for LogFlusherProxy
impl Sync for LogFlusherProxy
impl Unpin for LogFlusherProxy
impl !UnwindSafe for LogFlusherProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T
to [Self
]