Trait InboundAdapter
Source pub trait InboundAdapter:
Send
+ Sync
+ Debug {
// Required methods
fn wire_name(&self) -> &'static str;
fn parse_request(
&self,
raw: &Bytes,
) -> Result<CanonicalRequest, InboundParseError>;
fn render_response(&self, response: &CanonicalResponse) -> Bytes;
fn render_event(&self, event: &CanonicalEvent, model: &str) -> Option<Bytes>;
fn render_error(&self, status: StatusCode, message: &str) -> Bytes;
// Provided method
fn streaming_content_type(&self) -> &'static str { ... }
}