[][src]Trait libp2prs_core::muxing::StreamInfo

pub trait StreamInfo: Send {
    pub fn id(&self) -> usize;
}

StreamInfo returns the information of a substream opened by stream muxer.

The output of StreamMuxer must implements this trait.

Required methods

pub fn id(&self) -> usize[src]

Returns the identity of the stream.

Loading content...

Implementors

impl StreamInfo for Channel[src]

impl<A, B> StreamInfo for EitherOutput<A, B> where
    A: StreamInfo,
    B: StreamInfo
[src]

Loading content...