Struct wisp_mux::ClientMuxResult
source · pub struct ClientMuxResult<F>(/* private fields */)
where
F: Future<Output = Result<(), WispError>> + Send;
Expand description
Result of ClientMux::new
.
Implementations§
source§impl<F> ClientMuxResult<F>
impl<F> ClientMuxResult<F>
sourcepub fn with_no_required_extensions(self) -> (ClientMux, F)
pub fn with_no_required_extensions(self) -> (ClientMux, F)
Require no protocol extensions.
sourcepub async fn with_required_extensions(
self,
extensions: &[u8]
) -> Result<(ClientMux, F), WispError>
pub async fn with_required_extensions( self, extensions: &[u8] ) -> Result<(ClientMux, F), WispError>
Require protocol extensions by their ID.
sourcepub async fn with_udp_extension_required(
self
) -> Result<(ClientMux, F), WispError>
pub async fn with_udp_extension_required( self ) -> Result<(ClientMux, F), WispError>
Shorthand for with_required_extensions(&[UdpProtocolExtension::ID])
Auto Trait Implementations§
impl<F> Freeze for ClientMuxResult<F>where
F: Freeze,
impl<F> !RefUnwindSafe for ClientMuxResult<F>
impl<F> Send for ClientMuxResult<F>
impl<F> Sync for ClientMuxResult<F>where
F: Sync,
impl<F> Unpin for ClientMuxResult<F>where
F: Unpin,
impl<F> !UnwindSafe for ClientMuxResult<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