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 connect(&self, socket: Socket) -> Result<(), Error>
pub fn connect(&self, socket: Socket) -> Result<(), Error>
Send this socket to be drained.
See wire_format.h for what is expected to be received over the socket.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 connect(&self, socket: Socket) -> Result<(), Error>
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
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)