Trait toy_rpc::GracefulShutdown[][src]

pub trait GracefulShutdown {
#[must_use]    fn close<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn close<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl<R, W> GracefulShutdown for Codec<R, W, ConnTypePayload> where
    R: Send,
    W: GracefulShutdown + Send
[src]

impl<R, W> GracefulShutdown for Codec<R, W, ConnTypeReadWrite> where
    R: AsyncRead + Send + Sync + Unpin,
    W: AsyncWrite + Send + Sync + Unpin
[src]

impl<S, E> GracefulShutdown for S where
    S: Sink<Message, Error = E> + Send + Sync + Unpin,
    E: Error + 'static, 
[src]

Loading content...