pub struct RoutingPolicy {
pub security_level: SecurityLevel,
pub throughput: ThroughputPolicy,
pub spam: SpamPolicy,
pub trust: TrustPolicy,
pub content: ContentPolicy,
pub cache_max_messages: usize,
pub cache_max_bytes: usize,
}Expand description
Full router policy.
Fields§
§security_level: SecurityLevelHigh-level security posture.
throughput: ThroughputPolicyThroughput controls.
spam: SpamPolicySpam controls.
trust: TrustPolicyTrust controls.
content: ContentPolicyContent controls.
cache_max_messages: usizeMax messages retained in cache.
cache_max_bytes: usizeMax bytes retained in cache.
Implementations§
Source§impl RoutingPolicy
impl RoutingPolicy
Sourcepub fn for_level(level: SecurityLevel) -> Self
pub fn for_level(level: SecurityLevel) -> Self
Default policy for a chosen security level.
Trait Implementations§
Source§impl Clone for RoutingPolicy
impl Clone for RoutingPolicy
Source§fn clone(&self) -> RoutingPolicy
fn clone(&self) -> RoutingPolicy
Returns a duplicate 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 RoutingPolicy
impl Debug for RoutingPolicy
Source§impl Default for RoutingPolicy
impl Default for RoutingPolicy
Source§impl<'de> Deserialize<'de> for RoutingPolicy
impl<'de> Deserialize<'de> for RoutingPolicy
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
Auto Trait Implementations§
impl Freeze for RoutingPolicy
impl RefUnwindSafe for RoutingPolicy
impl Send for RoutingPolicy
impl Sync for RoutingPolicy
impl Unpin for RoutingPolicy
impl UnsafeUnpin for RoutingPolicy
impl UnwindSafe for RoutingPolicy
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