pub enum SocketBinaryType {
Blob,
ArrayBuffer,
}Expand description
The type of binary data being transmitted by the WebSocket connection.
Variants§
Blob
A Blob object represents a file-like object of immutable, raw data. (Javascript docs)
ArrayBuffer
The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. (Javascript docs)
Trait Implementations§
Source§impl Clone for SocketBinaryType
impl Clone for SocketBinaryType
Source§fn clone(&self) -> SocketBinaryType
fn clone(&self) -> SocketBinaryType
Returns a duplicate 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 moreSource§impl Debug for SocketBinaryType
impl Debug for SocketBinaryType
Source§impl Hash for SocketBinaryType
impl Hash for SocketBinaryType
Source§impl Ord for SocketBinaryType
impl Ord for SocketBinaryType
Source§fn cmp(&self, other: &SocketBinaryType) -> Ordering
fn cmp(&self, other: &SocketBinaryType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SocketBinaryType
impl PartialEq for SocketBinaryType
Source§impl PartialOrd for SocketBinaryType
impl PartialOrd for SocketBinaryType
impl Copy for SocketBinaryType
impl Eq for SocketBinaryType
impl StructuralPartialEq for SocketBinaryType
Auto Trait Implementations§
impl Freeze for SocketBinaryType
impl RefUnwindSafe for SocketBinaryType
impl Send for SocketBinaryType
impl Sync for SocketBinaryType
impl Unpin for SocketBinaryType
impl UnwindSafe for SocketBinaryType
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