pub struct ControlListConfig { /* private fields */ }Expand description
Configuration for the control list behaviour.
Implementations§
Source§impl Config
Control List Settings
impl Config
Control List Settings
Sourcepub const fn with_enable(self, enable: bool) -> Self
pub const fn with_enable(self, enable: bool) -> Self
Set enable
Sourcepub fn with_allow_list(self, allow_list: Vec<String>) -> Self
pub fn with_allow_list(self, allow_list: Vec<String>) -> Self
Set allow list
Sourcepub fn with_block_list(self, block_list: Vec<String>) -> Self
pub fn with_block_list(self, block_list: Vec<String>) -> Self
Set block list
Sourcepub fn with_service_allow_list(self, service_allow_list: Vec<String>) -> Self
pub fn with_service_allow_list(self, service_allow_list: Vec<String>) -> Self
Set Service list to consult allow list
Sourcepub fn with_service_block_list(self, service_block_list: Vec<String>) -> Self
pub fn with_service_block_list(self, service_block_list: Vec<String>) -> Self
Set Service list to consult block list
Sourcepub const fn with_interval_request(self, interval: Duration) -> Self
pub const fn with_interval_request(self, interval: Duration) -> Self
Set interval request
Sourcepub const fn with_request_timeout(self, timeout: Duration) -> Self
pub const fn with_request_timeout(self, timeout: Duration) -> Self
Set request timeout.
Sourcepub const fn with_max_concurrent_requests(self, value: usize) -> Self
pub const fn with_max_concurrent_requests(self, value: usize) -> Self
Set max concurrent requests. 0 is treated as 1 at runtime.
Sourcepub const fn get_interval_request(&self) -> Duration
pub const fn get_interval_request(&self) -> Duration
Set interval request
Sourcepub const fn get_request_timeout(&self) -> Duration
pub const fn get_request_timeout(&self) -> Duration
Get request timeout
Sourcepub const fn get_max_concurrent_requests(&self) -> usize
pub const fn get_max_concurrent_requests(&self) -> usize
Get max concurrent requests configured value. Runtime uses at least one concurrent request.
Sourcepub const fn get_enable(&self) -> bool
pub const fn get_enable(&self) -> bool
Get enable
Sourcepub fn get_allow_list(&self) -> Vec<String>
pub fn get_allow_list(&self) -> Vec<String>
Get allow list
Sourcepub fn get_block_list(&self) -> Vec<String>
pub fn get_block_list(&self) -> Vec<String>
Get block list
Sourcepub fn get_service_allow_list(&self) -> Vec<String>
pub fn get_service_allow_list(&self) -> Vec<String>
Get Service list to consult allow list
Sourcepub fn get_service_block_list(&self) -> Vec<String>
pub fn get_service_block_list(&self) -> Vec<String>
Get Service list to consult block list
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more