pub struct LogSinkPuppetSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LogSinkPuppetSynchronousProxy
impl LogSinkPuppetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LogSinkPuppetEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LogSinkPuppetEvent, 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 get_info(
&self,
___deadline: MonotonicInstant,
) -> Result<PuppetInfo, Error>
pub fn get_info( &self, ___deadline: MonotonicInstant, ) -> Result<PuppetInfo, Error>
Returns the information the puppet knows about itself.
Sourcepub fn emit_log(
&self,
spec: &RecordSpec,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn emit_log( &self, spec: &RecordSpec, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Logs a record.
Sourcepub fn stop_interest_listener(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn stop_interest_listener( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Disables the interest listener
Trait Implementations§
Source§impl SynchronousProxy for LogSinkPuppetSynchronousProxy
impl SynchronousProxy for LogSinkPuppetSynchronousProxy
Source§type Proxy = LogSinkPuppetProxy
type Proxy = LogSinkPuppetProxy
The async proxy for the same protocol.
Source§type Protocol = LogSinkPuppetMarker
type Protocol = LogSinkPuppetMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for LogSinkPuppetSynchronousProxy
impl RefUnwindSafe for LogSinkPuppetSynchronousProxy
impl Send for LogSinkPuppetSynchronousProxy
impl Sync for LogSinkPuppetSynchronousProxy
impl Unpin for LogSinkPuppetSynchronousProxy
impl UnwindSafe for LogSinkPuppetSynchronousProxy
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