#[repr(C)]pub struct _coap_request_ctx {
pub resource: *const coap_resource_t,
pub remote: *mut sock_udp_ep_t,
pub local: *mut sock_udp_ep_t,
pub tl_type: u32,
}
Expand description
@brief CoAP resource request handler context @internal
Fields§
§resource: *const coap_resource_t
< resource of the request
remote: *mut sock_udp_ep_t
< remote endpoint of the request
local: *mut sock_udp_ep_t
< local endpoint of the request
tl_type: u32
@brief transport the packet was received over @see @ref gcoap_socket_type_t for values. @note @ref gcoap_socket_type_t can not be used, as this would cyclically include the @ref net_gcoap header.
Trait Implementations§
Source§impl Clone for _coap_request_ctx
impl Clone for _coap_request_ctx
Source§fn clone(&self) -> _coap_request_ctx
fn clone(&self) -> _coap_request_ctx
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _coap_request_ctx
impl Debug for _coap_request_ctx
Source§impl Default for _coap_request_ctx
impl Default for _coap_request_ctx
impl Copy for _coap_request_ctx
Auto Trait Implementations§
impl Freeze for _coap_request_ctx
impl RefUnwindSafe for _coap_request_ctx
impl !Send for _coap_request_ctx
impl !Sync for _coap_request_ctx
impl Unpin for _coap_request_ctx
impl UnwindSafe for _coap_request_ctx
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes