pub struct DtlsConnection { /* private fields */ }Implementations§
Source§impl DtlsConnection
impl DtlsConnection
pub fn new(ctx: &DtlsContext, peer_addr: SocketAddr) -> Result<Self, CoapError>
pub fn peer_addr(&self) -> SocketAddr
pub fn client_cert(&self) -> Option<&ClientCertInfo>
pub fn is_handshake_complete(&self) -> bool
pub fn ssl(&self) -> &SslRef
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DtlsConnection
impl RefUnwindSafe for DtlsConnection
impl Send for DtlsConnection
impl Sync for DtlsConnection
impl Unpin for DtlsConnection
impl UnsafeUnpin for DtlsConnection
impl UnwindSafe for DtlsConnection
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