pub trait ClientRequestInterceptor: Interceptor {
// Provided methods
fn send_request(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), InterceptError> { ... }
fn send_poll(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), SystemException> { ... }
fn receive_reply(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), SystemException> { ... }
fn receive_exception(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), InterceptError> { ... }
fn receive_other(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), InterceptError> { ... }
}Expand description
PortableInterceptor::ClientRequestInterceptor.
For each attempt to send a request (one address of the target, see
docs/portable-interceptors.md), send_request is called on each
interceptor in the order they were added, and then one of
receive_reply, receive_exception or receive_other in the reverse
order, on those whose send_request returned Ok. They run on the
thread that makes the call (for an async call, the thread that polls
it): keep them short.
Provided Methods§
Sourcefn send_request(&self, ri: &ClientRequestInfo<'_>) -> Result<(), InterceptError>
fn send_request(&self, ri: &ClientRequestInfo<'_>) -> Result<(), InterceptError>
Before the request is sent: may add service contexts.
Sourcefn send_poll(&self, ri: &ClientRequestInfo<'_>) -> Result<(), SystemException>
fn send_poll(&self, ri: &ClientRequestInfo<'_>) -> Result<(), SystemException>
send_poll: never called (rustorb has no time-independent
invocations).
Sourcefn receive_reply(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), SystemException>
fn receive_reply( &self, ri: &ClientRequestInfo<'_>, ) -> Result<(), SystemException>
After a normal reply.
Sourcefn receive_exception(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), InterceptError>
fn receive_exception( &self, ri: &ClientRequestInfo<'_>, ) -> Result<(), InterceptError>
After an exception, from the server or from the ORB.
Sourcefn receive_other(
&self,
ri: &ClientRequestInfo<'_>,
) -> Result<(), InterceptError>
fn receive_other( &self, ri: &ClientRequestInfo<'_>, ) -> Result<(), InterceptError>
After another outcome: a forward, a retry, or a oneway request sent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".