pub struct LifecycleSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LifecycleSynchronousProxy
impl LifecycleSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LifecycleEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LifecycleEvent, 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 stop(&self) -> Result<(), Error>
pub fn stop(&self) -> Result<(), Error>
The process must clean up its state in preparation for termination, and
must close the channel hosting the Lifecycle
protocol when it is
ready to be terminated. The process should exit after it completes its
cleanup. At the discretion of the system the process may be terminated
before it closes the Lifecycle
channel.
Trait Implementations§
Source§impl Debug for LifecycleSynchronousProxy
impl Debug for LifecycleSynchronousProxy
Source§impl SynchronousProxy for LifecycleSynchronousProxy
impl SynchronousProxy for LifecycleSynchronousProxy
Source§type Proxy = LifecycleProxy
type Proxy = LifecycleProxy
The async proxy for the same protocol.
Source§type Protocol = LifecycleMarker
type Protocol = LifecycleMarker
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 LifecycleSynchronousProxy
impl RefUnwindSafe for LifecycleSynchronousProxy
impl Send for LifecycleSynchronousProxy
impl Sync for LifecycleSynchronousProxy
impl Unpin for LifecycleSynchronousProxy
impl UnwindSafe for LifecycleSynchronousProxy
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