#[repr(C)]pub struct otCoapBlockwiseResource {
pub mUriPath: *const c_char,
pub mHandler: otCoapRequestHandler,
pub mReceiveHook: otCoapBlockwiseReceiveHook,
pub mTransmitHook: otCoapBlockwiseTransmitHook,
pub mContext: *mut c_void,
pub mNext: *mut otCoapBlockwiseResource,
}
Expand description
Represents a CoAP resource with block-wise transfer.
Fields§
§mUriPath: *const c_char
< The URI Path string
mHandler: otCoapRequestHandler
< The callback for handling a received request
mReceiveHook: otCoapBlockwiseReceiveHook
The callback for handling incoming block-wise transfer. This callback is available when OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE configuration is enabled.
mTransmitHook: otCoapBlockwiseTransmitHook
The callback for handling outgoing block-wise transfer. This callback is available when OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE configuration is enabled.
mContext: *mut c_void
< Application-specific context
mNext: *mut otCoapBlockwiseResource
< The next CoAP resource in the list
Trait Implementations§
Source§impl Clone for otCoapBlockwiseResource
impl Clone for otCoapBlockwiseResource
Source§fn clone(&self) -> otCoapBlockwiseResource
fn clone(&self) -> otCoapBlockwiseResource
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 otCoapBlockwiseResource
impl Debug for otCoapBlockwiseResource
Source§impl Default for otCoapBlockwiseResource
impl Default for otCoapBlockwiseResource
impl Copy for otCoapBlockwiseResource
Auto Trait Implementations§
impl Freeze for otCoapBlockwiseResource
impl RefUnwindSafe for otCoapBlockwiseResource
impl !Send for otCoapBlockwiseResource
impl !Sync for otCoapBlockwiseResource
impl Unpin for otCoapBlockwiseResource
impl UnwindSafe for otCoapBlockwiseResource
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)