pub struct LibResolvSrvRecord {
pub target: String,
pub port: u16,
pub priority: u16,
pub weight: u16,
}
Expand description
Representation of SRV records used by LibResolv
.
Fields§
§target: String
Records’s target.
port: u16
Record’s port.
priority: u16
Record’s priority.
weight: u16
Record’s weight.
Trait Implementations§
Source§impl Clone for LibResolvSrvRecord
impl Clone for LibResolvSrvRecord
Source§fn clone(&self) -> LibResolvSrvRecord
fn clone(&self) -> LibResolvSrvRecord
Returns a copy 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 moreSource§impl Debug for LibResolvSrvRecord
impl Debug for LibResolvSrvRecord
Source§impl PartialEq for LibResolvSrvRecord
impl PartialEq for LibResolvSrvRecord
Source§impl SrvRecord for LibResolvSrvRecord
impl SrvRecord for LibResolvSrvRecord
Source§type Target = str
type Target = str
Type representing the SRV record’s target. Must implement
Display
so
it can be used to create a Uri
.impl Eq for LibResolvSrvRecord
impl StructuralPartialEq for LibResolvSrvRecord
Auto Trait Implementations§
impl Freeze for LibResolvSrvRecord
impl RefUnwindSafe for LibResolvSrvRecord
impl Send for LibResolvSrvRecord
impl Sync for LibResolvSrvRecord
impl Unpin for LibResolvSrvRecord
impl UnwindSafe for LibResolvSrvRecord
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