pub enum AllowedSource {
Ip(IpAddr),
Cidr {
base: IpAddr,
prefix_len: u8,
},
}Expand description
A single entry in the allowlist: either an exact IP address or a CIDR block.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AllowedSource
impl Clone for AllowedSource
Source§fn clone(&self) -> AllowedSource
fn clone(&self) -> AllowedSource
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 AllowedSource
impl Debug for AllowedSource
Source§impl PartialEq for AllowedSource
impl PartialEq for AllowedSource
impl Eq for AllowedSource
impl StructuralPartialEq for AllowedSource
Auto Trait Implementations§
impl Freeze for AllowedSource
impl RefUnwindSafe for AllowedSource
impl Send for AllowedSource
impl Sync for AllowedSource
impl Unpin for AllowedSource
impl UnsafeUnpin for AllowedSource
impl UnwindSafe for AllowedSource
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