pub struct EmptyBytesEncoder {
pub dialect: DialectDescriptor,
}Expand description
Encoder returning empty bytes.
Fields§
§dialect: DialectDescriptorDialect stamped on the encoded exchange.
Implementations§
Source§impl EmptyBytesEncoder
impl EmptyBytesEncoder
Sourcepub fn new(dialect: DialectDescriptor) -> Self
pub fn new(dialect: DialectDescriptor) -> Self
Construct with an explicit dialect stamp.
Trait Implementations§
Source§impl Debug for EmptyBytesEncoder
impl Debug for EmptyBytesEncoder
Source§impl OutboundDialectEncoder for EmptyBytesEncoder
impl OutboundDialectEncoder for EmptyBytesEncoder
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 EmptyBytesEncoder
impl RefUnwindSafe for EmptyBytesEncoder
impl Send for EmptyBytesEncoder
impl Sync for EmptyBytesEncoder
impl Unpin for EmptyBytesEncoder
impl UnsafeUnpin for EmptyBytesEncoder
impl UnwindSafe for EmptyBytesEncoder
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