pub struct IdentityHandler;Expand description
Identity middleware handler.
Trait Implementations§
Source§impl<S, C> ClientMiddleware<S, C> for IdentityHandler
impl<S, C> ClientMiddleware<S, C> for IdentityHandler
Source§fn pre_startup(
&mut self,
_context: &Context,
_state: &mut State,
message: PreStartupMessage,
) -> PreStartupMessage
fn pre_startup( &mut self, _context: &Context, _state: &mut State, message: PreStartupMessage, ) -> PreStartupMessage
Intercepts a client-originated pre-startup negotiation packet.
Source§fn startup(
&mut self,
_context: &Context,
_state: &mut State,
message: StartupMessage,
) -> StartupMessage
fn startup( &mut self, _context: &Context, _state: &mut State, message: StartupMessage, ) -> StartupMessage
Intercepts the owned startup message before it is sent.
Source§fn frontend(
&mut self,
_context: &Context,
_state: &mut State,
message: FrontendMessage,
) -> FrontendMessage
fn frontend( &mut self, _context: &Context, _state: &mut State, message: FrontendMessage, ) -> FrontendMessage
Intercepts one message sent by the client.
Source§fn backend(
&mut self,
_context: &Context,
_state: &mut State,
message: BackendMessage,
) -> BackendMessage
fn backend( &mut self, _context: &Context, _state: &mut State, message: BackendMessage, ) -> BackendMessage
Intercepts one message received from the server.
Source§impl Clone for IdentityHandler
impl Clone for IdentityHandler
Source§fn clone(&self) -> IdentityHandler
fn clone(&self) -> IdentityHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentityHandler
Source§impl Debug for IdentityHandler
impl Debug for IdentityHandler
Source§impl Default for IdentityHandler
impl Default for IdentityHandler
Source§fn default() -> IdentityHandler
fn default() -> IdentityHandler
Returns the “default value” for a type. Read more
impl Eq for IdentityHandler
Source§impl<C> MiddlewareFactory<C> for IdentityHandler
impl<C> MiddlewareFactory<C> for IdentityHandler
Source§impl PartialEq for IdentityHandler
impl PartialEq for IdentityHandler
impl StructuralPartialEq for IdentityHandler
Auto Trait Implementations§
impl Freeze for IdentityHandler
impl RefUnwindSafe for IdentityHandler
impl Send for IdentityHandler
impl Sync for IdentityHandler
impl Unpin for IdentityHandler
impl UnsafeUnpin for IdentityHandler
impl UnwindSafe for IdentityHandler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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