Struct coap::dtls::DtlsResponse
source · pub struct DtlsResponse {
pub conn: Arc<dyn Conn + Send + Sync>,
pub remote_addr: SocketAddr,
}
Fields§
§conn: Arc<dyn Conn + Send + Sync>
§remote_addr: SocketAddr
Trait Implementations§
source§impl Responder for DtlsResponse
impl Responder for DtlsResponse
source§fn respond<'life0, 'async_trait>(
&'life0 self,
response: Vec<u8>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn respond<'life0, 'async_trait>(
&'life0 self,
response: Vec<u8>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
responds to a request by creating a new task. This ensures we do not block the main server handler task
fn address(&self) -> SocketAddr
Auto Trait Implementations§
impl Freeze for DtlsResponse
impl !RefUnwindSafe for DtlsResponse
impl Send for DtlsResponse
impl Sync for DtlsResponse
impl Unpin for DtlsResponse
impl !UnwindSafe for DtlsResponse
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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