pub struct TlsIgtlConnection { /* private fields */ }
Expand description
TLS-encrypted client connection
Implementations§
Source§impl TlsIgtlConnection
impl TlsIgtlConnection
Sourcepub fn set_verify_crc(&mut self, verify: bool)
pub fn set_verify_crc(&mut self, verify: bool)
Enable or disable CRC verification
Sourcepub fn verify_crc(&self) -> bool
pub fn verify_crc(&self) -> bool
Get current CRC verification setting
Sourcepub async fn send<T: Message>(&mut self, msg: &IgtlMessage<T>) -> Result<()>
pub async fn send<T: Message>(&mut self, msg: &IgtlMessage<T>) -> Result<()>
Send a message over TLS
Sourcepub async fn receive<T: Message>(&mut self) -> Result<IgtlMessage<T>>
pub async fn receive<T: Message>(&mut self) -> Result<IgtlMessage<T>>
Receive a message over TLS
Sourcepub fn peer_addr(&self) -> Result<SocketAddr>
pub fn peer_addr(&self) -> Result<SocketAddr>
Get the remote peer address
Auto Trait Implementations§
impl !Freeze for TlsIgtlConnection
impl !RefUnwindSafe for TlsIgtlConnection
impl Send for TlsIgtlConnection
impl Sync for TlsIgtlConnection
impl Unpin for TlsIgtlConnection
impl !UnwindSafe for TlsIgtlConnection
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