pub enum NextEventResponse {
String(String),
Binary(ZeroCopyBuf),
Close {
code: u16,
reason: String,
},
Ping,
Pong,
Error(String),
Closed,
}
Variants
Trait Implementations
sourceimpl Serialize for NextEventResponse
impl Serialize for NextEventResponse
Auto Trait Implementations
impl RefUnwindSafe for NextEventResponse
impl Send for NextEventResponse
impl Sync for NextEventResponse
impl Unpin for NextEventResponse
impl UnwindSafe for NextEventResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more