Struct async_dnssd::QueryRecordData
source · [−]pub struct QueryRecordData {
pub flags: QueryRecordFlags,
pub interface: Interface,
pub rr_class: Class,
/* private fields */
}
Expand description
Optional data when querying for a record; either use its default value or customize it like:
QueryRecordData {
flags: QueryRecordFlags::LONG_LIVED_QUERY,
..Default::default()
};
Fields
flags: QueryRecordFlags
flags for query
interface: Interface
interface to query records on
rr_class: Class
class of the resource record (default: IN
)
Trait Implementations
sourceimpl Clone for QueryRecordData
impl Clone for QueryRecordData
sourcefn clone(&self) -> QueryRecordData
fn clone(&self) -> QueryRecordData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueryRecordData
impl Debug for QueryRecordData
sourceimpl Default for QueryRecordData
impl Default for QueryRecordData
sourceimpl Hash for QueryRecordData
impl Hash for QueryRecordData
sourceimpl Ord for QueryRecordData
impl Ord for QueryRecordData
sourcefn cmp(&self, other: &QueryRecordData) -> Ordering
fn cmp(&self, other: &QueryRecordData) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<QueryRecordData> for QueryRecordData
impl PartialEq<QueryRecordData> for QueryRecordData
sourcefn eq(&self, other: &QueryRecordData) -> bool
fn eq(&self, other: &QueryRecordData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &QueryRecordData) -> bool
fn ne(&self, other: &QueryRecordData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<QueryRecordData> for QueryRecordData
impl PartialOrd<QueryRecordData> for QueryRecordData
sourcefn partial_cmp(&self, other: &QueryRecordData) -> Option<Ordering>
fn partial_cmp(&self, other: &QueryRecordData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for QueryRecordData
impl Eq for QueryRecordData
impl StructuralEq for QueryRecordData
impl StructuralPartialEq for QueryRecordData
Auto Trait Implementations
impl RefUnwindSafe for QueryRecordData
impl Send for QueryRecordData
impl Sync for QueryRecordData
impl Unpin for QueryRecordData
impl UnwindSafe for QueryRecordData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more