pub struct Destination {
pub address: IpAddr,
pub fwd_method: ForwardTypeFull,
pub weight: u32,
pub upper_threshold: Option<NonZeroU32>,
pub lower_threshold: Option<NonZeroU32>,
pub port: u16,
pub family: AddressFamily,
}
Fields§
§address: IpAddr
§fwd_method: ForwardTypeFull
§weight: u32
§upper_threshold: Option<NonZeroU32>
§lower_threshold: Option<NonZeroU32>
§port: u16
§family: AddressFamily
Implementations§
Source§impl Destination
impl Destination
pub fn create_nlas(&self) -> Vec<DestinationCtrlAttrs>
Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
Source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
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 moreSource§impl Debug for Destination
impl Debug for Destination
Source§impl PartialEq for Destination
impl PartialEq for Destination
impl Eq for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnwindSafe for Destination
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