Struct wisp_mux::ServerMuxResult
source · pub struct ServerMuxResult<F>(/* private fields */)
where
F: Future<Output = Result<(), WispError>> + Send;
Expand description
Result of ServerMux::new
.
Implementations§
source§impl<F> ServerMuxResult<F>
impl<F> ServerMuxResult<F>
sourcepub fn with_no_required_extensions(self) -> (ServerMux, F)
pub fn with_no_required_extensions(self) -> (ServerMux, F)
Require no protocol extensions.
sourcepub async fn with_required_extensions(
self,
extensions: &[u8],
) -> Result<(ServerMux, F), WispError>
pub async fn with_required_extensions( self, extensions: &[u8], ) -> Result<(ServerMux, F), WispError>
Require protocol extensions by their ID. Will close the multiplexor connection if extensions are not supported.
sourcepub async fn with_udp_extension_required(
self,
) -> Result<(ServerMux, F), WispError>
pub async fn with_udp_extension_required( self, ) -> Result<(ServerMux, F), WispError>
Shorthand for with_required_extensions(&[UdpProtocolExtension::ID])
Auto Trait Implementations§
impl<F> Freeze for ServerMuxResult<F>where
F: Freeze,
impl<F> !RefUnwindSafe for ServerMuxResult<F>
impl<F> Send for ServerMuxResult<F>
impl<F> Sync for ServerMuxResult<F>where
F: Sync,
impl<F> Unpin for ServerMuxResult<F>where
F: Unpin,
impl<F> !UnwindSafe for ServerMuxResult<F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more