pub struct TestTextEncoder;Expand description
Loop-owned smoke encoder for FakeConnector + DialectDescriptor::test_raw.
Joins text parts as UTF-8 and ensures a trailing sentence terminator so the
segmenter emits. Not a production Channel encoder and not a testkit fixture
encoder — live hosts must use profile *_channel_binding encoders instead.
Trait Implementations§
Source§impl Debug for TestTextEncoder
impl Debug for TestTextEncoder
Source§impl Default for TestTextEncoder
impl Default for TestTextEncoder
Source§fn default() -> TestTextEncoder
fn default() -> TestTextEncoder
Returns the “default value” for a type. Read more
Source§impl OutboundDialectEncoder for TestTextEncoder
impl OutboundDialectEncoder for TestTextEncoder
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 TestTextEncoder
impl RefUnwindSafe for TestTextEncoder
impl Send for TestTextEncoder
impl Sync for TestTextEncoder
impl Unpin for TestTextEncoder
impl UnsafeUnpin for TestTextEncoder
impl UnwindSafe for TestTextEncoder
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