FetchRenderable

Trait FetchRenderable 

Source
pub trait FetchRenderable {
    type FetchIn;
    type FetchOut;

    // Provided method
    fn fetch(
        &mut self,
        _representation: &Self::FetchIn,
    ) -> Result<Self::FetchOut, Error> { ... }
}
Expand description

Subset of TypeRenderable that handles the FETCH method.

Required Associated Types§

Source

type FetchIn

Input type of the fetch() method, deserialized from the request payload.

Note that this is a size sensitive type: On CoAP servers that need to retain state between processing a request and sending a response, this type goes into that state.

Source

type FetchOut

Ouptut type of the fetch() method, serialized into the response payload.

Provided Methods§

Source

fn fetch( &mut self, _representation: &Self::FetchIn, ) -> Result<Self::FetchOut, Error>

Implementors§