pub struct PortFilter { /* private fields */ }Expand description
Port range filter.
Flags: 0 = allowed, non-zero = blocked.
Implementations§
Source§impl PortFilter
impl PortFilter
Sourcepub fn is_blocked(&self, port: u16) -> bool
pub fn is_blocked(&self, port: u16) -> bool
Check if a port is blocked.
Trait Implementations§
Source§impl Clone for PortFilter
impl Clone for PortFilter
Source§fn clone(&self) -> PortFilter
fn clone(&self) -> PortFilter
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 PortFilter
impl Debug for PortFilter
Auto Trait Implementations§
impl Freeze for PortFilter
impl RefUnwindSafe for PortFilter
impl Send for PortFilter
impl Sync for PortFilter
impl Unpin for PortFilter
impl UnsafeUnpin for PortFilter
impl UnwindSafe for PortFilter
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