pub struct KnownAnswer<'a> { /* private fields */ }Expand description
A known-answer hint observed in an incoming query, used to suppress our outgoing answers when the asker already has the same record.
carries src so the service can scope the hint to the
querier that supplied it. Hints from sources that did NOT issue a
Question in the current response cycle are dropped — without this,
an attacker could inject KAS hints during a legitimate questioner’s
jitter window and suppress the response.
Implementations§
Source§impl<'a> KnownAnswer<'a>
impl<'a> KnownAnswer<'a>
Trait Implementations§
Source§impl<'a> Clone for KnownAnswer<'a>
impl<'a> Clone for KnownAnswer<'a>
Source§fn clone(&self) -> KnownAnswer<'a>
fn clone(&self) -> KnownAnswer<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for KnownAnswer<'a>
Auto Trait Implementations§
impl<'a> Freeze for KnownAnswer<'a>
impl<'a> RefUnwindSafe for KnownAnswer<'a>
impl<'a> Send for KnownAnswer<'a>
impl<'a> Sync for KnownAnswer<'a>
impl<'a> Unpin for KnownAnswer<'a>
impl<'a> UnsafeUnpin for KnownAnswer<'a>
impl<'a> UnwindSafe for KnownAnswer<'a>
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