pub struct EgressAllowlist { /* private fields */ }Expand description
Which hosts a run may reach. A suffix list, because a building names domains rather than addresses, and an empty list is the honest way to say “nothing public” — a confidential building holds exactly this.
Implementations§
Source§impl EgressAllowlist
impl EgressAllowlist
Sourcepub fn new(entries: Vec<String>) -> EgressAllowlist
pub fn new(entries: Vec<String>) -> EgressAllowlist
Builds the list. Entries are lowercased and stripped of a leading
dot, so .example.com and example.com are the same rule rather
than two rules with different behaviour.
pub fn is_empty(&self) -> bool
pub fn entries(&self) -> impl Iterator<Item = &str>
Trait Implementations§
Source§impl Clone for EgressAllowlist
impl Clone for EgressAllowlist
Source§impl Debug for EgressAllowlist
impl Debug for EgressAllowlist
Source§impl Default for EgressAllowlist
impl Default for EgressAllowlist
impl Eq for EgressAllowlist
Source§impl PartialEq for EgressAllowlist
impl PartialEq for EgressAllowlist
impl StructuralPartialEq for EgressAllowlist
Auto Trait Implementations§
impl Freeze for EgressAllowlist
impl RefUnwindSafe for EgressAllowlist
impl Send for EgressAllowlist
impl Sync for EgressAllowlist
impl Unpin for EgressAllowlist
impl UnsafeUnpin for EgressAllowlist
impl UnwindSafe for EgressAllowlist
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