pub struct Identity;Expand description
Middleware which returns every message unchanged.
Trait Implementations§
Source§impl<State> BackendPipelineMiddleware<State> for Identity
impl<State> BackendPipelineMiddleware<State> for Identity
Source§type Error = Infallible
type Error = Infallible
An error which prevents the message from continuing through the pipeline.
Source§async fn backend_asynchronous(
&mut self,
_state: &mut State,
message: AsynchronousBackendMessage,
) -> Result<AsynchronousBackendMessage, Self::Error>
async fn backend_asynchronous( &mut self, _state: &mut State, message: AsynchronousBackendMessage, ) -> Result<AsynchronousBackendMessage, Self::Error>
Intercepts backend messages in generated
AsynchronousBackendMessage phase.Source§async fn backend_simple(
&mut self,
_state: &mut State,
message: SimpleInternalMessage,
) -> Result<SimpleInternalMessage, Self::Error>
async fn backend_simple( &mut self, _state: &mut State, message: SimpleInternalMessage, ) -> Result<SimpleInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleInternalMessage phase.Source§async fn backend_simple_error(
&mut self,
_state: &mut State,
message: SimpleErrorInternalMessage,
) -> Result<SimpleErrorInternalMessage, Self::Error>
async fn backend_simple_error( &mut self, _state: &mut State, message: SimpleErrorInternalMessage, ) -> Result<SimpleErrorInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleErrorInternalMessage phase.Source§async fn backend_parse_response(
&mut self,
_state: &mut State,
message: ParseResponseInternalMessage,
) -> Result<ParseResponseInternalMessage, Self::Error>
async fn backend_parse_response( &mut self, _state: &mut State, message: ParseResponseInternalMessage, ) -> Result<ParseResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ParseResponseInternalMessage phase.Source§async fn backend_bind_response(
&mut self,
_state: &mut State,
message: BindResponseInternalMessage,
) -> Result<BindResponseInternalMessage, Self::Error>
async fn backend_bind_response( &mut self, _state: &mut State, message: BindResponseInternalMessage, ) -> Result<BindResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: BindResponseInternalMessage phase.Source§async fn backend_describe_response(
&mut self,
_state: &mut State,
message: DescribeResponseInternalMessage,
) -> Result<DescribeResponseInternalMessage, Self::Error>
async fn backend_describe_response( &mut self, _state: &mut State, message: DescribeResponseInternalMessage, ) -> Result<DescribeResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: DescribeResponseInternalMessage phase.Source§async fn backend_execute_response(
&mut self,
_state: &mut State,
message: ExecuteResponseInternalMessage,
) -> Result<ExecuteResponseInternalMessage, Self::Error>
async fn backend_execute_response( &mut self, _state: &mut State, message: ExecuteResponseInternalMessage, ) -> Result<ExecuteResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExecuteResponseInternalMessage phase.Source§async fn backend_close_response(
&mut self,
_state: &mut State,
message: CloseResponseInternalMessage,
) -> Result<CloseResponseInternalMessage, Self::Error>
async fn backend_close_response( &mut self, _state: &mut State, message: CloseResponseInternalMessage, ) -> Result<CloseResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: CloseResponseInternalMessage phase.Source§async fn backend_sync_response(
&mut self,
_state: &mut State,
message: SyncResponseInternalMessage,
) -> Result<SyncResponseInternalMessage, Self::Error>
async fn backend_sync_response( &mut self, _state: &mut State, message: SyncResponseInternalMessage, ) -> Result<SyncResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SyncResponseInternalMessage phase.Source§async fn backend_function_response(
&mut self,
_state: &mut State,
message: FunctionResponseInternalMessage,
) -> Result<FunctionResponseInternalMessage, Self::Error>
async fn backend_function_response( &mut self, _state: &mut State, message: FunctionResponseInternalMessage, ) -> Result<FunctionResponseInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: FunctionResponseInternalMessage phase.Source§async fn backend_function_ready(
&mut self,
_state: &mut State,
message: FunctionReadyInternalMessage,
) -> Result<FunctionReadyInternalMessage, Self::Error>
async fn backend_function_ready( &mut self, _state: &mut State, message: FunctionReadyInternalMessage, ) -> Result<FunctionReadyInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: FunctionReadyInternalMessage phase.Source§async fn backend_simple_copy_in_done(
&mut self,
_state: &mut State,
message: SimpleCopyInDoneInternalMessage,
) -> Result<SimpleCopyInDoneInternalMessage, Self::Error>
async fn backend_simple_copy_in_done( &mut self, _state: &mut State, message: SimpleCopyInDoneInternalMessage, ) -> Result<SimpleCopyInDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyInDoneInternalMessage phase.Source§async fn backend_simple_copy_in_failed(
&mut self,
_state: &mut State,
message: SimpleCopyInFailedInternalMessage,
) -> Result<SimpleCopyInFailedInternalMessage, Self::Error>
async fn backend_simple_copy_in_failed( &mut self, _state: &mut State, message: SimpleCopyInFailedInternalMessage, ) -> Result<SimpleCopyInFailedInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyInFailedInternalMessage phase.Source§async fn backend_simple_copy_out(
&mut self,
_state: &mut State,
message: SimpleCopyOutInternalMessage,
) -> Result<SimpleCopyOutInternalMessage, Self::Error>
async fn backend_simple_copy_out( &mut self, _state: &mut State, message: SimpleCopyOutInternalMessage, ) -> Result<SimpleCopyOutInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyOutInternalMessage phase.Source§async fn backend_simple_copy_out_done(
&mut self,
_state: &mut State,
message: SimpleCopyOutDoneInternalMessage,
) -> Result<SimpleCopyOutDoneInternalMessage, Self::Error>
async fn backend_simple_copy_out_done( &mut self, _state: &mut State, message: SimpleCopyOutDoneInternalMessage, ) -> Result<SimpleCopyOutDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyOutDoneInternalMessage phase.Source§async fn backend_simple_copy_ready(
&mut self,
_state: &mut State,
message: SimpleCopyReadyInternalMessage,
) -> Result<SimpleCopyReadyInternalMessage, Self::Error>
async fn backend_simple_copy_ready( &mut self, _state: &mut State, message: SimpleCopyReadyInternalMessage, ) -> Result<SimpleCopyReadyInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyReadyInternalMessage phase.Source§async fn backend_extended_copy_in_done(
&mut self,
_state: &mut State,
message: ExtendedCopyInDoneInternalMessage,
) -> Result<ExtendedCopyInDoneInternalMessage, Self::Error>
async fn backend_extended_copy_in_done( &mut self, _state: &mut State, message: ExtendedCopyInDoneInternalMessage, ) -> Result<ExtendedCopyInDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyInDoneInternalMessage phase.Source§async fn backend_extended_copy_in_failed(
&mut self,
_state: &mut State,
message: ExtendedCopyInFailedInternalMessage,
) -> Result<ExtendedCopyInFailedInternalMessage, Self::Error>
async fn backend_extended_copy_in_failed( &mut self, _state: &mut State, message: ExtendedCopyInFailedInternalMessage, ) -> Result<ExtendedCopyInFailedInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyInFailedInternalMessage phase.Source§async fn backend_extended_copy_out(
&mut self,
_state: &mut State,
message: ExtendedCopyOutInternalMessage,
) -> Result<ExtendedCopyOutInternalMessage, Self::Error>
async fn backend_extended_copy_out( &mut self, _state: &mut State, message: ExtendedCopyOutInternalMessage, ) -> Result<ExtendedCopyOutInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyOutInternalMessage phase.Source§async fn backend_extended_copy_out_done(
&mut self,
_state: &mut State,
message: ExtendedCopyOutDoneInternalMessage,
) -> Result<ExtendedCopyOutDoneInternalMessage, Self::Error>
async fn backend_extended_copy_out_done( &mut self, _state: &mut State, message: ExtendedCopyOutDoneInternalMessage, ) -> Result<ExtendedCopyOutDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyOutDoneInternalMessage phase.Source§async fn backend_simple_copy_both(
&mut self,
_state: &mut State,
message: SimpleCopyBothInternalMessage,
) -> Result<SimpleCopyBothInternalMessage, Self::Error>
async fn backend_simple_copy_both( &mut self, _state: &mut State, message: SimpleCopyBothInternalMessage, ) -> Result<SimpleCopyBothInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyBothInternalMessage phase.Source§async fn backend_simple_copy_both_client_done(
&mut self,
_state: &mut State,
message: SimpleCopyBothClientDoneInternalMessage,
) -> Result<SimpleCopyBothClientDoneInternalMessage, Self::Error>
async fn backend_simple_copy_both_client_done( &mut self, _state: &mut State, message: SimpleCopyBothClientDoneInternalMessage, ) -> Result<SimpleCopyBothClientDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyBothClientDoneInternalMessage phase.Source§async fn backend_simple_copy_both_done(
&mut self,
_state: &mut State,
message: SimpleCopyBothDoneInternalMessage,
) -> Result<SimpleCopyBothDoneInternalMessage, Self::Error>
async fn backend_simple_copy_both_done( &mut self, _state: &mut State, message: SimpleCopyBothDoneInternalMessage, ) -> Result<SimpleCopyBothDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyBothDoneInternalMessage phase.Source§async fn backend_simple_copy_both_failed(
&mut self,
_state: &mut State,
message: SimpleCopyBothFailedInternalMessage,
) -> Result<SimpleCopyBothFailedInternalMessage, Self::Error>
async fn backend_simple_copy_both_failed( &mut self, _state: &mut State, message: SimpleCopyBothFailedInternalMessage, ) -> Result<SimpleCopyBothFailedInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyBothFailedInternalMessage phase.Source§async fn backend_extended_copy_both(
&mut self,
_state: &mut State,
message: ExtendedCopyBothInternalMessage,
) -> Result<ExtendedCopyBothInternalMessage, Self::Error>
async fn backend_extended_copy_both( &mut self, _state: &mut State, message: ExtendedCopyBothInternalMessage, ) -> Result<ExtendedCopyBothInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyBothInternalMessage phase.Source§async fn backend_extended_copy_both_client_done(
&mut self,
_state: &mut State,
message: ExtendedCopyBothClientDoneInternalMessage,
) -> Result<ExtendedCopyBothClientDoneInternalMessage, Self::Error>
async fn backend_extended_copy_both_client_done( &mut self, _state: &mut State, message: ExtendedCopyBothClientDoneInternalMessage, ) -> Result<ExtendedCopyBothClientDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyBothClientDoneInternalMessage phase.Source§async fn backend_extended_copy_both_done(
&mut self,
_state: &mut State,
message: ExtendedCopyBothDoneInternalMessage,
) -> Result<ExtendedCopyBothDoneInternalMessage, Self::Error>
async fn backend_extended_copy_both_done( &mut self, _state: &mut State, message: ExtendedCopyBothDoneInternalMessage, ) -> Result<ExtendedCopyBothDoneInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyBothDoneInternalMessage phase.Source§async fn backend_extended_copy_both_failed(
&mut self,
_state: &mut State,
message: ExtendedCopyBothFailedInternalMessage,
) -> Result<ExtendedCopyBothFailedInternalMessage, Self::Error>
async fn backend_extended_copy_both_failed( &mut self, _state: &mut State, message: ExtendedCopyBothFailedInternalMessage, ) -> Result<ExtendedCopyBothFailedInternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyBothFailedInternalMessage phase.impl Copy for Identity
impl Eq for Identity
Source§impl<State> FrontendPipelineMiddleware<State> for Identity
impl<State> FrontendPipelineMiddleware<State> for Identity
Source§type Error = Infallible
type Error = Infallible
An error which prevents the message from continuing through the pipeline.
Source§async fn frontend_ready(
&mut self,
_state: &mut State,
message: ReadyExternalMessage,
) -> Result<ReadyExternalMessage, Self::Error>
async fn frontend_ready( &mut self, _state: &mut State, message: ReadyExternalMessage, ) -> Result<ReadyExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ReadyExternalMessage phase.Source§async fn frontend_building(
&mut self,
_state: &mut State,
message: BuildingExternalMessage,
) -> Result<BuildingExternalMessage, Self::Error>
async fn frontend_building( &mut self, _state: &mut State, message: BuildingExternalMessage, ) -> Result<BuildingExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: BuildingExternalMessage phase.Source§async fn frontend_extended_error(
&mut self,
_state: &mut State,
message: ExtendedErrorExternalMessage,
) -> Result<ExtendedErrorExternalMessage, Self::Error>
async fn frontend_extended_error( &mut self, _state: &mut State, message: ExtendedErrorExternalMessage, ) -> Result<ExtendedErrorExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedErrorExternalMessage phase.Source§async fn frontend_simple_copy_in(
&mut self,
_state: &mut State,
message: SimpleCopyInExternalMessage,
) -> Result<SimpleCopyInExternalMessage, Self::Error>
async fn frontend_simple_copy_in( &mut self, _state: &mut State, message: SimpleCopyInExternalMessage, ) -> Result<SimpleCopyInExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyInExternalMessage phase.Source§async fn frontend_extended_copy_in(
&mut self,
_state: &mut State,
message: ExtendedCopyInExternalMessage,
) -> Result<ExtendedCopyInExternalMessage, Self::Error>
async fn frontend_extended_copy_in( &mut self, _state: &mut State, message: ExtendedCopyInExternalMessage, ) -> Result<ExtendedCopyInExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyInExternalMessage phase.Source§async fn frontend_simple_copy_both(
&mut self,
_state: &mut State,
message: SimpleCopyBothExternalMessage,
) -> Result<SimpleCopyBothExternalMessage, Self::Error>
async fn frontend_simple_copy_both( &mut self, _state: &mut State, message: SimpleCopyBothExternalMessage, ) -> Result<SimpleCopyBothExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: SimpleCopyBothExternalMessage phase.Source§async fn frontend_extended_copy_both(
&mut self,
_state: &mut State,
message: ExtendedCopyBothExternalMessage,
) -> Result<ExtendedCopyBothExternalMessage, Self::Error>
async fn frontend_extended_copy_both( &mut self, _state: &mut State, message: ExtendedCopyBothExternalMessage, ) -> Result<ExtendedCopyBothExternalMessage, Self::Error>
Intercepts backend messages in generated
backend :: ExtendedCopyBothExternalMessage phase.Source§impl<Message, State> MessageMiddleware<Message, State> for Identity
impl<Message, State> MessageMiddleware<Message, State> for Identity
Source§type Error = Infallible
type Error = Infallible
An error which prevents the message from continuing through the chain.
impl StructuralPartialEq for Identity
Source§impl<Role, Phase, Message, State> TypedMiddleware<Role, Phase, Message, State> for Identity
impl<Role, Phase, Message, State> TypedMiddleware<Role, Phase, Message, State> for Identity
Source§type Error = Infallible
type Error = Infallible
An error which prevents the message from continuing through the chain.
Source§async fn intercept_typed(
&mut self,
_state: &mut State,
message: Message,
) -> Result<Message, Self::Error>
async fn intercept_typed( &mut self, _state: &mut State, message: Message, ) -> Result<Message, Self::Error>
Observes, mutates, or replaces one phase-legal message and may await while
borrowing both the handler and caller-defined state. Read more
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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