pub enum UdpEvent {
Recv(usize, Vec<u8>, Option<SocketAddr>),
Sent(usize, Vec<u8>, Option<SocketAddr>),
Task(LocalBoxFuture<'static, TaskResult>),
CloseConnection(usize, Result<()>),
CloseListener(Result<()>),
}Expand description
Udp事件
Variants§
Recv(usize, Vec<u8>, Option<SocketAddr>)
Sent(usize, Vec<u8>, Option<SocketAddr>)
Task(LocalBoxFuture<'static, TaskResult>)
CloseConnection(usize, Result<()>)
CloseListener(Result<()>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UdpEvent
impl !RefUnwindSafe for UdpEvent
impl !Sync for UdpEvent
impl Unpin for UdpEvent
impl !UnwindSafe for UdpEvent
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