Enum worker::ws_events::WebsocketEvent
source · pub enum WebsocketEvent {
Message(MessageEvent),
Close(CloseEvent),
}
Expand description
Events that can be yielded by a EventStream
.
Variants§
Message(MessageEvent)
Close(CloseEvent)
Trait Implementations§
source§impl Clone for WebsocketEvent
impl Clone for WebsocketEvent
source§fn clone(&self) -> WebsocketEvent
fn clone(&self) -> WebsocketEvent
Returns a copy 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 WebsocketEvent
impl RefUnwindSafe for WebsocketEvent
impl !Send for WebsocketEvent
impl !Sync for WebsocketEvent
impl Unpin for WebsocketEvent
impl UnwindSafe for WebsocketEvent
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