Struct riot_sys::coap_resource_t[][src]

#[repr(C)]
pub struct coap_resource_t { pub path: *const c_char, pub methods: coap_method_flags_t, pub handler: coap_handler_t, pub context: *mut c_void, }
Expand description

@brief Type for CoAP resource entry

Fields

path: *const c_char

< URI path of resource

methods: coap_method_flags_t

< OR’ed methods this resource allows

handler: coap_handler_t

< ptr to resource handler

context: *mut c_void

< ptr to user defined context data

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.