pub struct LoggingMiddleware { /* private fields */ }Expand description
Logging middleware
Implementations§
Trait Implementations§
Source§impl GatewayMiddleware for LoggingMiddleware
impl GatewayMiddleware for LoggingMiddleware
Source§fn before_route(&self, request: &mut InferenceRequest) -> FederationResult<()>
fn before_route(&self, request: &mut InferenceRequest) -> FederationResult<()>
Process request before routing
Source§fn after_infer(
&self,
request: &InferenceRequest,
response: &mut InferenceResponse,
) -> FederationResult<()>
fn after_infer( &self, request: &InferenceRequest, response: &mut InferenceResponse, ) -> FederationResult<()>
Process response after inference
Source§fn on_error(&self, request: &InferenceRequest, error: &FederationError)
fn on_error(&self, request: &InferenceRequest, error: &FederationError)
Handle errors
Auto Trait Implementations§
impl Freeze for LoggingMiddleware
impl RefUnwindSafe for LoggingMiddleware
impl Send for LoggingMiddleware
impl Sync for LoggingMiddleware
impl Unpin for LoggingMiddleware
impl UnwindSafe for LoggingMiddleware
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more