[][src]Enum websocat::PeerConstructor

pub enum PeerConstructor {
    ServeOnce(BoxedNewPeerFuture),
    ServeMultipleTimes(BoxedNewPeerStream),
    Overlay1(BoxedNewPeerFuturePeerOverlay),
    OverlayM(BoxedNewPeerStreamPeerOverlay),
}

Variants

ServeOnce(BoxedNewPeerFuture)ServeMultipleTimes(BoxedNewPeerStream)Overlay1(BoxedNewPeerFuturePeerOverlay)OverlayM(BoxedNewPeerStreamPeerOverlay)

Methods

impl PeerConstructor[src]

pub fn map<F: 'static>(self, func: F) -> Self where
    F: Fn(Peer, L2rUser) -> BoxedNewPeerFuture
[src]

pub fn get_only_first_conn(self, l2r: L2rUser) -> BoxedNewPeerFuture[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.