Struct coap_handler_implementations::TypedStaticResponse [−][src]
Fields
payload: &'static [u8]
contentformat: &'static [u8]
Trait Implementations
impl From<&'static str> for TypedStaticResponse
[src]
impl Handler for TypedStaticResponse
[src]
type RequestData = u8
fn extract_request_data(
&mut self,
request: &impl ReadableMessage
) -> Self::RequestData
[src]
&mut self,
request: &impl ReadableMessage
) -> Self::RequestData
fn estimate_length(&mut self, request: &Self::RequestData) -> usize
[src]
fn build_response(
&mut self,
response: &mut impl MutableWritableMessage,
request: Self::RequestData
)
[src]
&mut self,
response: &mut impl MutableWritableMessage,
request: Self::RequestData
)
Auto Trait Implementations
impl Send for TypedStaticResponse
impl Sync for TypedStaticResponse
impl Unpin for TypedStaticResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldH where
OldH: Handler<RequestData = OldRD>,
[src]
OldH: Handler<RequestData = OldRD>,
pub fn at<H>(Self, &'a [&'a str], H) -> ForkingHandler<'a, H, OldH>
[src]
impl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldH where
OldH: Handler<RequestData = OldRD>,
[src]
OldH: Handler<RequestData = OldRD>,
pub fn at<H>(
self,
path: &'a [&'a str],
handler: H
) -> ForkingHandler<'a, H, OldH>
[src]
self,
path: &'a [&'a str],
handler: H
) -> ForkingHandler<'a, H, OldH>
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,