pub struct CompiledIpRules {
pub block_private: bool,
pub blocked_cidrs: Vec<IpNet>,
pub allowed_cidrs: Vec<IpNet>,
}Expand description
Pre-compiled IP access control rules for DNS rebinding protection.
CIDRs are parsed at policy compile time so evaluation is a fast prefix-length comparison with no parsing overhead.
Fields§
§block_private: bool§blocked_cidrs: Vec<IpNet>§allowed_cidrs: Vec<IpNet>Trait Implementations§
Source§impl Clone for CompiledIpRules
impl Clone for CompiledIpRules
Source§fn clone(&self) -> CompiledIpRules
fn clone(&self) -> CompiledIpRules
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 moreAuto Trait Implementations§
impl Freeze for CompiledIpRules
impl RefUnwindSafe for CompiledIpRules
impl Send for CompiledIpRules
impl Sync for CompiledIpRules
impl Unpin for CompiledIpRules
impl UnsafeUnpin for CompiledIpRules
impl UnwindSafe for CompiledIpRules
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