pub struct GrpcModule { /* private fields */ }Implementations§
Source§impl GrpcModule
impl GrpcModule
Trait Implementations§
Source§impl Default for GrpcModule
impl Default for GrpcModule
Source§fn default() -> GrpcModule
fn default() -> GrpcModule
Returns the “default value” for a type. Read more
Source§impl WafModule for GrpcModule
impl WafModule for GrpcModule
Source§fn structural(&self) -> bool
fn structural(&self) -> bool
Structural: its caps are not content-rule matches, so the content fast-path must not skip it (else a gRPC DoS with no content signature would bypass). Same rule as the GraphQL module.
fn id(&self) -> &str
fn phase(&self) -> Phase
Source§fn init(&mut self, cfg: &Config)
fn init(&mut self, cfg: &Config)
Called once at startup; compile/init rules here, never in
inspect.Source§fn inspect(&self, ctx: &RequestContext) -> Decision
fn inspect(&self, ctx: &RequestContext) -> Decision
Read-only access to context; pipeline owns mutation of
score.Auto Trait Implementations§
impl Freeze for GrpcModule
impl RefUnwindSafe for GrpcModule
impl Send for GrpcModule
impl Sync for GrpcModule
impl Unpin for GrpcModule
impl UnsafeUnpin for GrpcModule
impl UnwindSafe for GrpcModule
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