Struct async_dnssd::RegisterRecordData
source · [−]pub struct RegisterRecordData {
pub flags: RegisterRecordFlags,
pub interface: Interface,
pub rr_class: Class,
pub ttl: u32,
/* private fields */
}
Expand description
Optional data when registering a record; either use its default value or customize it like:
RegisterRecordData {
ttl: 60,
..Default::default()
};
Fields
flags: RegisterRecordFlags
flags for registration
interface: Interface
interface to register record on
rr_class: Class
class of the resource record (default: IN
)
ttl: u32
time to live of the resource record in seconds (passing 0 will select a sensible default)
Trait Implementations
sourceimpl Clone for RegisterRecordData
impl Clone for RegisterRecordData
sourcefn clone(&self) -> RegisterRecordData
fn clone(&self) -> RegisterRecordData
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 RegisterRecordData
impl Debug for RegisterRecordData
sourceimpl Default for RegisterRecordData
impl Default for RegisterRecordData
sourceimpl Hash for RegisterRecordData
impl Hash for RegisterRecordData
sourceimpl Ord for RegisterRecordData
impl Ord for RegisterRecordData
sourcefn cmp(&self, other: &RegisterRecordData) -> Ordering
fn cmp(&self, other: &RegisterRecordData) -> 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<RegisterRecordData> for RegisterRecordData
impl PartialEq<RegisterRecordData> for RegisterRecordData
sourcefn eq(&self, other: &RegisterRecordData) -> bool
fn eq(&self, other: &RegisterRecordData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RegisterRecordData) -> bool
fn ne(&self, other: &RegisterRecordData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<RegisterRecordData> for RegisterRecordData
impl PartialOrd<RegisterRecordData> for RegisterRecordData
sourcefn partial_cmp(&self, other: &RegisterRecordData) -> Option<Ordering>
fn partial_cmp(&self, other: &RegisterRecordData) -> 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 RegisterRecordData
impl Eq for RegisterRecordData
impl StructuralEq for RegisterRecordData
impl StructuralPartialEq for RegisterRecordData
Auto Trait Implementations
impl RefUnwindSafe for RegisterRecordData
impl Send for RegisterRecordData
impl Sync for RegisterRecordData
impl Unpin for RegisterRecordData
impl UnwindSafe for RegisterRecordData
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