pub struct TransportConfig {
pub unix_socket_path: Option<String>,
pub windows_pipe_path: Option<String>,
pub tcp_fallback_addr: Option<String>,
pub auth_token: Option<String>,
}Expand description
Transport configuration
Fields§
§unix_socket_path: Option<String>Path for Unix domain socket
windows_pipe_path: Option<String>Path for Windows named pipe
tcp_fallback_addr: Option<String>TCP address for fallback (Windows only)
auth_token: Option<String>Authentication token for encrypted transports
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn for_current_platform() -> Self
pub fn for_current_platform() -> Self
Create a new transport configuration with defaults for the current platform
Sourcepub fn with_auth_token(self, token: String) -> Self
pub fn with_auth_token(self, token: String) -> Self
Set the authentication token
Sourcepub fn with_unix_socket(self, path: String) -> Self
pub fn with_unix_socket(self, path: String) -> Self
Set the Unix socket path
Sourcepub fn with_windows_pipe(self, path: String) -> Self
pub fn with_windows_pipe(self, path: String) -> Self
Set the Windows named pipe path
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportConfig
impl Debug for TransportConfig
Source§impl Default for TransportConfig
impl Default for TransportConfig
Source§fn default() -> TransportConfig
fn default() -> TransportConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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