pub struct DummyContextStack<Name: ?Sized, Frame> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<Name: ?Sized, Frame: Framing> ContextStack for DummyContextStack<Name, Frame>where
FramingEncodedFinal<Frame>: BufExt,
impl<Name: ?Sized, Frame: Framing> ContextStack for DummyContextStack<Name, Frame>where
FramingEncodedFinal<Frame>: BufExt,
Source§fn on_read_data(
&mut self,
_msg: SerializedMessage<'_, Self::Name, FramingDecoded<Self::Frame>>,
) -> Result<(), Error>
fn on_read_data( &mut self, _msg: SerializedMessage<'_, Self::Name, FramingDecoded<Self::Frame>>, ) -> Result<(), Error>
Called before post_read after reading arguments (server) / after reading
reply (client), with the actual (unparsed, serialized) data.
Source§fn on_write_data(
&mut self,
_msg: SerializedMessage<'_, Self::Name, FramingEncodedFinal<Self::Frame>>,
) -> Result<(), Error>
fn on_write_data( &mut self, _msg: SerializedMessage<'_, Self::Name, FramingEncodedFinal<Self::Frame>>, ) -> Result<(), Error>
Called before post_write, after serializing response (server) / after
serializing request (client), with the actual (serialized) data.
Auto Trait Implementations§
impl<Name, Frame> Freeze for DummyContextStack<Name, Frame>where
Name: ?Sized,
impl<Name, Frame> RefUnwindSafe for DummyContextStack<Name, Frame>
impl<Name, Frame> Send for DummyContextStack<Name, Frame>
impl<Name, Frame> Sync for DummyContextStack<Name, Frame>
impl<Name, Frame> Unpin for DummyContextStack<Name, Frame>
impl<Name, Frame> UnwindSafe for DummyContextStack<Name, Frame>
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