ReplyState

Trait ReplyState 

Source
pub trait ReplyState<F>
where F: Framing,
{ type RequestContext; // Required methods fn send_reply(&mut self, reply: FramingEncodedFinal<F>); fn send_stream_reply( &mut self, response: FramingEncodedFinal<F>, stream: Option<BoxStream<'static, SerializedStreamElement<FramingEncodedFinal<F>>>>, protocol_id: ProtocolID, ) -> Result<()>; // Provided method fn set_interaction_processor( &mut self, _processor: Arc<dyn ThriftService<F, Handler = (), RequestContext = Self::RequestContext, ReplyState = Self> + Send + 'static>, ) -> Result<()> { ... } }

Required Associated Types§

Required Methods§

Source

fn send_reply(&mut self, reply: FramingEncodedFinal<F>)

Source

fn send_stream_reply( &mut self, response: FramingEncodedFinal<F>, stream: Option<BoxStream<'static, SerializedStreamElement<FramingEncodedFinal<F>>>>, protocol_id: ProtocolID, ) -> Result<()>

Provided Methods§

Source

fn set_interaction_processor( &mut self, _processor: Arc<dyn ThriftService<F, Handler = (), RequestContext = Self::RequestContext, ReplyState = Self> + Send + 'static>, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§