pub enum Transport {
Tcp,
Tls(TlsConfiguration),
Unix,
Ws,
Wss(TlsConfiguration),
}
Expand description
Transport methods. Defaults to TCP.
Variants§
Tcp
Tls(TlsConfiguration)
Unix
Ws
Available on crate feature
websocket
only.Wss(TlsConfiguration)
Available on crate features
use-rustls
and websocket
only.Implementations§
Source§impl Transport
impl Transport
pub fn tls_with_default_config() -> Self
Sourcepub fn tls(
ca: Vec<u8>,
client_auth: Option<(Vec<u8>, Vec<u8>)>,
alpn: Option<Vec<Vec<u8>>>,
) -> Self
pub fn tls( ca: Vec<u8>, client_auth: Option<(Vec<u8>, Vec<u8>)>, 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>, Vec<u8>)>,
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>, Vec<u8>)>, 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.pub fn wss_with_default_config() -> Self
Available on crate features
use-rustls
and websocket
only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl !UnwindSafe for Transport
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