pub struct TaggedStringCodec;Expand description
A tagged StringCodec handler that reads with input of TaggedBytesMut and output of TaggedString, or writes with input of TaggedString and output of TaggedBytesMut
Implementations§
Trait Implementations§
Source§impl Default for TaggedStringCodec
impl Default for TaggedStringCodec
Source§impl Handler for TaggedStringCodec
impl Handler for TaggedStringCodec
Source§fn handle_read(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
msg: Self::Rin,
)
fn handle_read( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, msg: Self::Rin, )
Handles an inbound message. Read more
Source§fn poll_write(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
) -> Option<Self::Wout>
fn poll_write( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, ) -> Option<Self::Wout>
Polls for an outbound message. Read more
Source§fn transport_active(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
)
fn transport_active( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, )
Called when the transport becomes active (connected). Read more
Source§fn transport_inactive(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
)
fn transport_inactive( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, )
Called when the transport becomes inactive (disconnected). Read more
Source§fn handle_timeout(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
now: Instant,
)
fn handle_timeout( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, now: Instant, )
Handles a timeout event. Read more
Source§fn poll_timeout(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
eto: &mut Instant,
)
fn poll_timeout( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, eto: &mut Instant, )
Polls for the next timeout deadline. Read more
Source§fn handle_eof(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
)
fn handle_eof( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, )
Handles an end-of-file (EOF) event. Read more
Auto Trait Implementations§
impl Freeze for TaggedStringCodec
impl RefUnwindSafe for TaggedStringCodec
impl Send for TaggedStringCodec
impl Sync for TaggedStringCodec
impl Unpin for TaggedStringCodec
impl UnwindSafe for TaggedStringCodec
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more