pub struct ServiceQuestion<'a> { /* private fields */ }Expand description
A question routed to a registered service.
Implementations§
Source§impl<'a> ServiceQuestion<'a>
impl<'a> ServiceQuestion<'a>
Sourcepub const fn question(&self) -> &QuestionRef<'a>
pub const fn question(&self) -> &QuestionRef<'a>
Returns the DNS question.
Sourcepub const fn truncated(&self) -> bool
pub const fn truncated(&self) -> bool
true if the query packet had the TC bit set (RFC 6762 §7.2 multipacket
known-answer suppression — more known-answer packets follow).
Sourcepub const fn src(&self) -> SocketAddr
pub const fn src(&self) -> SocketAddr
Returns the source socket address of the peer that sent the query.
Trait Implementations§
Source§impl<'a> Clone for ServiceQuestion<'a>
impl<'a> Clone for ServiceQuestion<'a>
Source§fn clone(&self) -> ServiceQuestion<'a>
fn clone(&self) -> ServiceQuestion<'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 ServiceQuestion<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServiceQuestion<'a>
impl<'a> RefUnwindSafe for ServiceQuestion<'a>
impl<'a> Send for ServiceQuestion<'a>
impl<'a> Sync for ServiceQuestion<'a>
impl<'a> Unpin for ServiceQuestion<'a>
impl<'a> UnsafeUnpin for ServiceQuestion<'a>
impl<'a> UnwindSafe for ServiceQuestion<'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