Enum ratchet_rs::Role
source · [−]pub enum Role {
Client,
Server,
}
Expand description
The role of a WebSocket.
Variants
Client
The WebSocket is a client.
Server
The WebSocket is a server.
Implementations
Trait Implementations
impl Copy for Role
impl StructuralPartialEq for Role
Auto Trait Implementations
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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