Struct spacegate_kernel::plugins::filters::compression::SgFilterCompression
source · pub struct SgFilterCompression {}Trait Implementations§
source§impl Clone for SgFilterCompression
impl Clone for SgFilterCompression
source§fn clone(&self) -> SgFilterCompression
fn clone(&self) -> SgFilterCompression
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SgFilterCompression
impl Debug for SgFilterCompression
source§impl Default for SgFilterCompression
impl Default for SgFilterCompression
source§fn default() -> SgFilterCompression
fn default() -> SgFilterCompression
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SgFilterCompression
impl<'de> Deserialize<'de> for SgFilterCompression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SgFilterCompression
impl Serialize for SgFilterCompression
source§impl SgPluginFilter for SgFilterCompression
impl SgPluginFilter for SgFilterCompression
source§fn accept(&self) -> SgPluginFilterAccept
fn accept(&self) -> SgPluginFilterAccept
Enable the filter to have a state that determines
whether to execute the filter at runtime
fn init<'life0, 'life1, 'async_trait>( &'life0 mut self, _: &'life1 SgPluginFilterInitDto ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn destroy<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
source§fn req_filter<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 str,
ctx: SgRoutePluginContext
) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRoutePluginContext)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn req_filter<'life0, 'life1, 'async_trait>( &'life0 self, _: &'life1 str, ctx: SgRoutePluginContext ) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRoutePluginContext)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Request Filtering: Read more
source§fn resp_filter<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 str,
ctx: SgRoutePluginContext
) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRoutePluginContext)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resp_filter<'life0, 'life1, 'async_trait>( &'life0 self, _: &'life1 str, ctx: SgRoutePluginContext ) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRoutePluginContext)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Response Filtering: Read more
source§fn before_resp_filter_check(&self, ctx: &SgRoutePluginContext) -> bool
fn before_resp_filter_check(&self, ctx: &SgRoutePluginContext) -> bool
Whether to filter the response
fn boxed(self) -> BoxSgPluginFilterwhere Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for SgFilterCompression
impl Send for SgFilterCompression
impl Sync for SgFilterCompression
impl Unpin for SgFilterCompression
impl UnwindSafe for SgFilterCompression
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