[][src]Enum tokio_yamux::session::SessionType

pub enum SessionType {
    Client,
    Server,
}

Session type, client or server

Variants

Client

The session is a client

Server

The session is a server (typical low level stream is an accepted TcpStream)

Implementations

impl SessionType[src]

pub fn is_client(self) -> bool[src]

If this is a client type (inbound connection)

pub fn is_server(self) -> bool[src]

If this is a server type (outbound connection)

Trait Implementations

impl Clone for SessionType[src]

impl Copy for SessionType[src]

impl Debug for SessionType[src]

impl Eq for SessionType[src]

impl Ord for SessionType[src]

impl PartialEq<SessionType> for SessionType[src]

impl PartialOrd<SessionType> for SessionType[src]

impl StructuralEq for SessionType[src]

impl StructuralPartialEq for SessionType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.