Enum ratchet_rs::PayloadType
source · [−]pub enum PayloadType {
Text,
Binary,
Ping,
Pong,
}
Expand description
The type of a payload to send to a peer.
Variants
Text
A text message.
Binary
A binary message.
Ping
A ping message.
Pong
A pong message.
Trait Implementations
sourceimpl Clone for PayloadType
impl Clone for PayloadType
sourcefn clone(&self) -> PayloadType
fn clone(&self) -> PayloadType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PayloadType
impl Debug for PayloadType
impl Copy for PayloadType
Auto Trait Implementations
impl RefUnwindSafe for PayloadType
impl Send for PayloadType
impl Sync for PayloadType
impl Unpin for PayloadType
impl UnwindSafe for PayloadType
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