pub struct CheckResult {
pub result: FilterResult,
pub resolved_addrs: Vec<SocketAddr>,
}Expand description
Result of a filter check including resolved socket addresses.
When the filter allows a host, resolved_addrs contains the DNS-resolved
addresses. Callers MUST connect to these addresses (not re-resolve the
hostname) to prevent DNS rebinding TOCTOU attacks.
Fields§
§result: FilterResultThe filter decision
resolved_addrs: Vec<SocketAddr>DNS-resolved addresses (empty if denied or DNS failed)
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
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