Struct simple_dns::rdata::RouteThrough
source · pub struct RouteThrough<'a> {
pub preference: u16,
pub intermediate_host: Name<'a>,
}
Expand description
The RT resource record provides a route-through binding for hosts that do not have their own direct wide area network addresses
Fields§
§preference: u16
A 16 bit integer which specifies the preference given to this RR among others at the same owner.
Lower values are preferred.
intermediate_host: Name<'a>
A Name which specifies a host which will serve as an intermediate in reaching the host specified by
Implementations§
source§impl<'a> RouteThrough<'a>
impl<'a> RouteThrough<'a>
sourcepub fn into_owned<'b>(self) -> RouteThrough<'b>
pub fn into_owned<'b>(self) -> RouteThrough<'b>
Transforms the inner data into its owned type
Trait Implementations§
source§impl<'a> Clone for RouteThrough<'a>
impl<'a> Clone for RouteThrough<'a>
source§fn clone(&self) -> RouteThrough<'a>
fn clone(&self) -> RouteThrough<'a>
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<'a> Debug for RouteThrough<'a>
impl<'a> Debug for RouteThrough<'a>
source§impl<'a> Hash for RouteThrough<'a>
impl<'a> Hash for RouteThrough<'a>
source§impl<'a> PartialEq for RouteThrough<'a>
impl<'a> PartialEq for RouteThrough<'a>
source§fn eq(&self, other: &RouteThrough<'a>) -> bool
fn eq(&self, other: &RouteThrough<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for RouteThrough<'a>
impl<'a> StructuralEq for RouteThrough<'a>
impl<'a> StructuralPartialEq for RouteThrough<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RouteThrough<'a>
impl<'a> Send for RouteThrough<'a>
impl<'a> Sync for RouteThrough<'a>
impl<'a> Unpin for RouteThrough<'a>
impl<'a> UnwindSafe for RouteThrough<'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