pub struct LogSinkProxy { /* private fields */ }
Implementations§
Source§impl LogSinkProxy
impl LogSinkProxy
Sourcepub fn take_event_stream(&self) -> LogSinkEventStream
pub fn take_event_stream(&self) -> LogSinkEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn wait_for_interest_change(
&self,
) -> QueryResponseFut<LogSinkWaitForInterestChangeResult, DefaultFuchsiaResourceDialect>
pub fn wait_for_interest_change( &self, ) -> QueryResponseFut<LogSinkWaitForInterestChangeResult, DefaultFuchsiaResourceDialect>
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 Clone for LogSinkProxy
impl Clone for LogSinkProxy
Source§fn clone(&self) -> LogSinkProxy
fn clone(&self) -> LogSinkProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LogSinkProxy
impl Debug for LogSinkProxy
Source§impl LogSinkProxyInterface for LogSinkProxy
impl LogSinkProxyInterface for LogSinkProxy
type WaitForInterestChangeResponseFut = QueryResponseFut<Result<Interest, InterestChangeError>>
fn wait_for_interest_change(&self) -> Self::WaitForInterestChangeResponseFut
fn connect_structured(&self, socket: Socket) -> Result<(), Error>
Source§impl Proxy for LogSinkProxy
impl Proxy for LogSinkProxy
Source§type Protocol = LogSinkMarker
type Protocol = LogSinkMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for LogSinkProxy
impl !RefUnwindSafe for LogSinkProxy
impl Send for LogSinkProxy
impl Sync for LogSinkProxy
impl Unpin for LogSinkProxy
impl !UnwindSafe for LogSinkProxy
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
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,
Source§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
T: Proxy,
impl<T> ProxyHasDomain for Twhere
T: Proxy,
Source§fn domain(&self) -> ZirconClient
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.