pub enum GrpcMessageAction {
Forward(GrpcMessage),
Drop,
Error(u32, String),
}Expand description
Actions a middleware can take after intercepting a gRPC message.
Variants§
Forward(GrpcMessage)
Forward the message along the processing chain. It can be potentially modified.
Drop
Silently drop the message, meaning it won’t reach its intended destination.
Error(u32, String)
Return an immediate gRPC error to the client with the specified status code and message.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GrpcMessageAction
impl RefUnwindSafe for GrpcMessageAction
impl Send for GrpcMessageAction
impl Sync for GrpcMessageAction
impl Unpin for GrpcMessageAction
impl UnsafeUnpin for GrpcMessageAction
impl UnwindSafe for GrpcMessageAction
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