pub trait StreamMuxerExt: StreamMuxer + Sized {
    fn poll_inbound_unpin(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Result<Self::Substream, Self::Error>>
    where
        Self: Unpin
, { ... } fn poll_outbound_unpin(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Result<Self::Substream, Self::Error>>
    where
        Self: Unpin
, { ... } fn poll_unpin(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Result<StreamMuxerEvent, Self::Error>>
    where
        Self: Unpin
, { ... } fn poll_close_unpin(
        &mut self,
        cx: &mut Context<'_>
    ) -> Poll<Result<(), Self::Error>>
    where
        Self: Unpin
, { ... } fn close(self) -> Close<Self> { ... } }
Expand description

Extension trait for StreamMuxer.

Provided Methods§

Convenience function for calling StreamMuxer::poll_inbound for StreamMuxers that are Unpin.

Convenience function for calling StreamMuxer::poll_outbound for StreamMuxers that are Unpin.

Convenience function for calling StreamMuxer::poll for StreamMuxers that are Unpin.

Convenience function for calling StreamMuxer::poll_close for StreamMuxers that are Unpin.

Returns a future for closing this StreamMuxer.

Implementors§