pub enum WsBaseEvent {
Open,
Close(Option<String>),
Error(String),
}Expand description
基础 WebSocket 事件
Variants§
Trait Implementations§
Source§impl Clone for WsBaseEvent
impl Clone for WsBaseEvent
Source§fn clone(&self) -> WsBaseEvent
fn clone(&self) -> WsBaseEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WsBaseEvent
impl RefUnwindSafe for WsBaseEvent
impl Send for WsBaseEvent
impl Sync for WsBaseEvent
impl Unpin for WsBaseEvent
impl UnsafeUnpin for WsBaseEvent
impl UnwindSafe for WsBaseEvent
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