pub struct SecureTcpSession { /* private fields */ }Expand description
Secure framed TCP session built on SRX.
Implementations§
Source§impl SecureTcpSession
impl SecureTcpSession
Sourcepub async fn connect(addr: SocketAddr, config: SrxConfig) -> Result<Self>
pub async fn connect(addr: SocketAddr, config: SrxConfig) -> Result<Self>
Connect as initiator and establish secure SRX session over TCP.
Sourcepub async fn accept(stream: TcpStream, config: SrxConfig) -> Result<Self>
pub async fn accept(stream: TcpStream, config: SrxConfig) -> Result<Self>
Accept as responder and establish secure SRX session over accepted stream.
Sourcepub async fn send_data(&self, payload: &[u8]) -> Result<()>
pub async fn send_data(&self, payload: &[u8]) -> Result<()>
Send application data over secure channel.
Sourcepub async fn send_signal(&self, signal: &Signal) -> Result<()>
pub async fn send_signal(&self, signal: &Signal) -> Result<()>
Send in-band control signal over secure channel.
Auto Trait Implementations§
impl !Freeze for SecureTcpSession
impl !RefUnwindSafe for SecureTcpSession
impl Send for SecureTcpSession
impl Sync for SecureTcpSession
impl Unpin for SecureTcpSession
impl UnsafeUnpin for SecureTcpSession
impl !UnwindSafe for SecureTcpSession
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request