pub struct UdpProtocolExtension;
Expand description
UDP protocol extension.
Implementations§
Trait Implementations§
Source§impl Debug for UdpProtocolExtension
impl Debug for UdpProtocolExtension
Source§impl From<UdpProtocolExtension> for AnyProtocolExtension
impl From<UdpProtocolExtension> for AnyProtocolExtension
Source§fn from(value: UdpProtocolExtension) -> Self
fn from(value: UdpProtocolExtension) -> Self
Converts to this type from the input type.
Source§impl ProtocolExtension for UdpProtocolExtension
impl ProtocolExtension for UdpProtocolExtension
Source§fn get_supported_packets(&self) -> &'static [u8] ⓘ
fn get_supported_packets(&self) -> &'static [u8] ⓘ
Get the protocol extension’s supported packets. Read more
Source§fn handle_handshake<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_: &'life1 mut dyn WebSocketRead,
_: &'life2 LockedWebSocketWrite,
) -> Pin<Box<dyn Future<Output = Result<(), WispError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_handshake<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_: &'life1 mut dyn WebSocketRead,
_: &'life2 LockedWebSocketWrite,
) -> Pin<Box<dyn Future<Output = Result<(), WispError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handle the handshake part of a Wisp connection. Read more
Source§fn handle_packet<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
__arg1: Bytes,
_: &'life1 mut dyn WebSocketRead,
_: &'life2 LockedWebSocketWrite,
) -> Pin<Box<dyn Future<Output = Result<(), WispError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_packet<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
__arg1: Bytes,
_: &'life1 mut dyn WebSocketRead,
_: &'life2 LockedWebSocketWrite,
) -> Pin<Box<dyn Future<Output = Result<(), WispError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handle receiving a packet.
Auto Trait Implementations§
impl Freeze for UdpProtocolExtension
impl RefUnwindSafe for UdpProtocolExtension
impl Send for UdpProtocolExtension
impl Sync for UdpProtocolExtension
impl Unpin for UdpProtocolExtension
impl UnwindSafe for UdpProtocolExtension
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