Struct spacegate_kernel::plugins::filters::status::SgFilterStatus
source · pub struct SgFilterStatus {
pub serv_addr: String,
pub port: u16,
pub title: String,
pub unhealthy_threshold: u16,
pub interval: u64,
}Fields§
§serv_addr: String§port: u16§title: String§unhealthy_threshold: u16Unhealthy threshold , if server error more than this, server will be tag as unhealthy
interval: u64Trait Implementations§
source§impl Clone for SgFilterStatus
impl Clone for SgFilterStatus
source§fn clone(&self) -> SgFilterStatus
fn clone(&self) -> SgFilterStatus
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 SgFilterStatus
impl Debug for SgFilterStatus
source§impl Default for SgFilterStatus
impl Default for SgFilterStatus
source§impl<'de> Deserialize<'de> for SgFilterStatuswhere
SgFilterStatus: Default,
impl<'de> Deserialize<'de> for SgFilterStatuswhere SgFilterStatus: Default,
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 SgFilterStatus
impl Serialize for SgFilterStatus
source§impl SgPluginFilter for SgFilterStatus
impl SgPluginFilter for SgFilterStatus
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, init_dto: &'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,
fn req_filter<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _: &'life1 str, ctx: SgRoutePluginContext, _matched_match_inst: Option<&'life2 SgHttpRouteMatchInst> ) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRoutePluginContext)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn resp_filter<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _: &'life1 str, ctx: SgRoutePluginContext, __arg3: Option<&'life2 SgHttpRouteMatchInst> ) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRoutePluginContext)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
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 SgFilterStatus
impl Send for SgFilterStatus
impl Sync for SgFilterStatus
impl Unpin for SgFilterStatus
impl UnwindSafe for SgFilterStatus
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