Enum websocat::PeerConstructor [−][src]
pub enum PeerConstructor { ServeOnce(BoxedNewPeerFuture), ServeMultipleTimes(BoxedNewPeerStream), Overlay1(BoxedNewPeerFuture, PeerOverlay), OverlayM(BoxedNewPeerStream, PeerOverlay), }
Variants
ServeOnce(BoxedNewPeerFuture)
ServeMultipleTimes(BoxedNewPeerStream)
Overlay1(BoxedNewPeerFuture, PeerOverlay)
OverlayM(BoxedNewPeerStream, PeerOverlay)
Methods
impl PeerConstructor
[src]
impl PeerConstructor
pub fn map<F: 'static>(self, func: F) -> Self where
F: Fn(Peer) -> BoxedNewPeerFuture,
[src]
pub fn map<F: 'static>(self, func: F) -> Self where
F: Fn(Peer) -> BoxedNewPeerFuture,
pub fn get_only_first_conn(self) -> BoxedNewPeerFuture
[src]
pub fn get_only_first_conn(self) -> BoxedNewPeerFuture
Auto Trait Implementations
impl !Send for PeerConstructor
impl !Send for PeerConstructor
impl !Sync for PeerConstructor
impl !Sync for PeerConstructor