Enum deno_websocket::NextEventResponse
source · [−]pub enum NextEventResponse {
String(String),
Binary(ZeroCopyBuf),
Close {
code: u16,
reason: String,
},
Ping,
Pong,
Error(String),
Closed,
}
Variants
String(String)
Binary(ZeroCopyBuf)
Close
Ping
Pong
Error(String)
Closed
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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