pub struct EmergencyModeConfig { /* private fields */ }Expand description
The emergency whitelist (SecurityConfig.emergency_whitelist).
Implementations§
Source§impl EmergencyModeConfig
impl EmergencyModeConfig
Sourcepub fn new<I>(entries: I) -> Result<Self, IpGateError>
pub fn new<I>(entries: I) -> Result<Self, IpGateError>
Parse the whitelist, failing closed on an invalid entry.
§Errors
IpGateError naming the first entry that is neither a valid IP
nor a valid CIDR range.
Trait Implementations§
Source§impl Clone for EmergencyModeConfig
impl Clone for EmergencyModeConfig
Source§impl Debug for EmergencyModeConfig
impl Debug for EmergencyModeConfig
Source§impl Default for EmergencyModeConfig
impl Default for EmergencyModeConfig
impl Eq for EmergencyModeConfig
Source§impl PartialEq for EmergencyModeConfig
impl PartialEq for EmergencyModeConfig
impl StructuralPartialEq for EmergencyModeConfig
Auto Trait Implementations§
impl Freeze for EmergencyModeConfig
impl RefUnwindSafe for EmergencyModeConfig
impl Send for EmergencyModeConfig
impl Sync for EmergencyModeConfig
impl Unpin for EmergencyModeConfig
impl UnsafeUnpin for EmergencyModeConfig
impl UnwindSafe for EmergencyModeConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.