pub enum Transport {
Tcp,
Tls(TlsConfiguration),
Unix,
Ws,
Wss(TlsConfiguration),
}
Variants
Tcp
Tls(TlsConfiguration)
Unix
Ws
Available on crate feature
websocket
only.Wss(TlsConfiguration)
Available on crate features
use-rustls
and websocket
only.Implementations
sourceimpl Transport
impl Transport
sourcepub fn tls(
ca: Vec<u8>,
client_auth: Option<(Vec<u8>, Key)>,
alpn: Option<Vec<Vec<u8>>>
) -> Self
pub fn tls(
ca: Vec<u8>,
client_auth: Option<(Vec<u8>, Key)>,
alpn: Option<Vec<Vec<u8>>>
) -> Self
Use secure tcp with tls as transport
pub fn tls_with_config(tls_config: TlsConfiguration) -> Self
pub fn unix() -> Self
sourcepub fn wss(
ca: Vec<u8>,
client_auth: Option<(Vec<u8>, Key)>,
alpn: Option<Vec<Vec<u8>>>
) -> Self
Available on crate features use-rustls
and websocket
only.
pub fn wss(
ca: Vec<u8>,
client_auth: Option<(Vec<u8>, Key)>,
alpn: Option<Vec<Vec<u8>>>
) -> Self
use-rustls
and websocket
only.Use secure websockets with tls as transport
pub fn wss_with_config(tls_config: TlsConfiguration) -> Self
Available on crate features
use-rustls
and websocket
only.Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl !UnwindSafe for Transport
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