Enum tungstenite::stream::Mode
source · pub enum Mode {
Plain,
Tls,
}
Expand description
Stream mode, either plain TCP or TLS.
Variants
Plain
Plain mode (ws://
URL).
Tls
TLS mode (wss://
URL).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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