Trait Response

Source
pub trait Response: IntoResponse {
    // Required method
    fn body(self) -> Result<Vec<u8>, Error>;
}
Expand description

Trait that defines the Announce Response Format

Required Methods§

Source

fn body(self) -> Result<Vec<u8>, Error>

Returns the Body of the Announce Response

§Errors

If unable to generate the response, it will return an error.

Implementors§

Source§

impl<E: From<AnnounceData> + Into<Vec<u8>>> Response for Announce<E>

Implement the Response for the Announce.