pub enum ClientMode {
Tcp {
client_config: Option<ClientConfig>,
},
WebSocket {
url: String,
},
}Variants§
Tcp
Raw TCP, optionally wrapped in TLS
Fields
§
client_config: Option<ClientConfig>WebSocket
WebSocket — for environments without raw TCP access (e.g. WASM) ‘url’ full ws:// or wss:// URL, e.g. “wss://example.com:9000/ws”
Trait Implementations§
Source§impl Clone for ClientMode
impl Clone for ClientMode
Source§fn clone(&self) -> ClientMode
fn clone(&self) -> ClientMode
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 moreAuto Trait Implementations§
impl Freeze for ClientMode
impl !RefUnwindSafe for ClientMode
impl Send for ClientMode
impl Sync for ClientMode
impl Unpin for ClientMode
impl UnsafeUnpin for ClientMode
impl !UnwindSafe for ClientMode
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