pub struct SRVRecordData {
pub priority: i32,
pub weight: i32,
pub port: i32,
pub target: String,
pub ttl: Option<i32>,
}Expand description
Parameters for creating SRV records.
Contains the priority, weight, port, and target required for SRV records.
Fields§
§priority: i32Priority of the target host (lower is higher priority)
weight: i32Relative weight for records with the same priority
port: i32TCP or UDP port on which the service is found
target: StringCanonical hostname of the machine providing the service
ttl: Option<i32>Time to live in seconds
Trait Implementations§
Source§impl Clone for SRVRecordData
impl Clone for SRVRecordData
Source§fn clone(&self) -> SRVRecordData
fn clone(&self) -> SRVRecordData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SRVRecordData
impl RefUnwindSafe for SRVRecordData
impl Send for SRVRecordData
impl Sync for SRVRecordData
impl Unpin for SRVRecordData
impl UnwindSafe for SRVRecordData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more