pub struct TcpRemoteTransport { /* private fields */ }Expand description
Real TCP transport that exchanges canonical wire frames with a liminal server.
Implementations§
Source§impl TcpRemoteTransport
impl TcpRemoteTransport
Sourcepub fn connect(server_address: &ServerAddress) -> Result<Self, SdkError>
pub fn connect(server_address: &ServerAddress) -> Result<Self, SdkError>
Connects to server_address, completes the handshake, and returns a ready transport.
§Errors
Returns SdkError::Connection when the TCP connection cannot be
established, and SdkError::Protocol when the handshake frames cannot be
encoded, sent, or are rejected by the server.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TcpRemoteTransport
impl !UnwindSafe for TcpRemoteTransport
impl Freeze for TcpRemoteTransport
impl Send for TcpRemoteTransport
impl Sync for TcpRemoteTransport
impl Unpin for TcpRemoteTransport
impl UnsafeUnpin for TcpRemoteTransport
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