pub struct RejectEncoder;Expand description
Encoder that rejects all encode calls.
Trait Implementations§
Source§impl Debug for RejectEncoder
impl Debug for RejectEncoder
Source§impl Default for RejectEncoder
impl Default for RejectEncoder
Source§fn default() -> RejectEncoder
fn default() -> RejectEncoder
Returns the “default value” for a type. Read more
Source§impl OutboundDialectEncoder for RejectEncoder
impl OutboundDialectEncoder for RejectEncoder
Source§fn encode_initial(
&self,
_request: InitialEncodeRequest<'_>,
) -> Result<EncodedExchange, EncodingError>
fn encode_initial( &self, _request: InitialEncodeRequest<'_>, ) -> Result<EncodedExchange, EncodingError>
Encode the first provider exchange for a transaction.
Source§fn encode_tool_continuation(
&self,
_request: ToolContinuationEncodeRequest<'_>,
) -> Result<EncodedExchange, EncodingError>
fn encode_tool_continuation( &self, _request: ToolContinuationEncodeRequest<'_>, ) -> Result<EncodedExchange, EncodingError>
Encode a tool-result continuation exchange.
Auto Trait Implementations§
impl Freeze for RejectEncoder
impl RefUnwindSafe for RejectEncoder
impl Send for RejectEncoder
impl Sync for RejectEncoder
impl Unpin for RejectEncoder
impl UnsafeUnpin for RejectEncoder
impl UnwindSafe for RejectEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more