#[non_exhaustive]pub enum BinaryFrames {
Close,
Ignore,
}Available on crate feature
server only.Expand description
What the driver does with a binary message (RFC 8887 §4.3.1: “the endpoint can either ignore the frame or close the WebSocket connection”).
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.
Close
Send a Close with CLOSE_UNSUPPORTED_DATA and end the connection.
Ignore
Drop the message and keep reading.
Trait Implementations§
Source§impl Clone for BinaryFrames
impl Clone for BinaryFrames
impl Copy for BinaryFrames
Source§impl Debug for BinaryFrames
impl Debug for BinaryFrames
Source§impl Default for BinaryFrames
impl Default for BinaryFrames
impl Eq for BinaryFrames
Source§impl PartialEq for BinaryFrames
impl PartialEq for BinaryFrames
impl StructuralPartialEq for BinaryFrames
Auto Trait Implementations§
impl Forget for BinaryFrames
impl Freeze for BinaryFrames
impl Move for BinaryFrames
impl RefUnwindSafe for BinaryFrames
impl Send for BinaryFrames
impl Sync for BinaryFrames
impl Unpin for BinaryFrames
impl UnsafeUnpin for BinaryFrames
impl UnwindSafe for BinaryFrames
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