Enum servers::server::ClientStream
source · [−]Expand description
Connection stream of the client
Variants
TCP(Arc<TcpStream>)
TCP stream
WebSocket(Arc<Mutex<WebSocket<TcpStream>>>)
WebSocket stream
Trait Implementations
sourceimpl Clone for ClientStream
impl Clone for ClientStream
sourcefn clone(&self) -> ClientStream
fn clone(&self) -> ClientStream
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 moreAuto Trait Implementations
impl RefUnwindSafe for ClientStream
impl Send for ClientStream
impl Sync for ClientStream
impl Unpin for ClientStream
impl UnwindSafe for ClientStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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