#[non_exhaustive]pub enum Outbound {
Text(String),
Close {
code: u16,
reason: String,
},
}Available on crate feature
server only.Expand description
A WebSocket message the driver sends.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
A text message: one serialized RFC 8887 server message.
Close
A Close frame with a status code and reason.
Trait Implementations§
impl Eq for Outbound
impl StructuralPartialEq for Outbound
Auto Trait Implementations§
impl Forget for Outbound
impl Freeze for Outbound
impl Move for Outbound
impl RefUnwindSafe for Outbound
impl Send for Outbound
impl Sync for Outbound
impl Unpin for Outbound
impl UnsafeUnpin for Outbound
impl UnwindSafe for Outbound
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