pub struct Description {Show 13 fields
pub address_lists: Vec<AddressList>,
pub connect_data: ConnectData,
pub security: Security,
pub retry_count: u32,
pub retry_delay: u32,
pub expire_time: u32,
pub tcp_connect_timeout: f64,
pub sdu: u32,
pub load_balance: bool,
pub failover: bool,
pub source_route: bool,
pub use_sni: bool,
pub extra: Vec<(String, String)>,
}Expand description
A single resolved DESCRIPTION node.
Fields§
§address_lists: Vec<AddressList>Address lists belonging to this description.
connect_data: ConnectDataCONNECT_DATA settings.
security: SecuritySECURITY settings.
retry_count: u32RETRY_COUNT=.
retry_delay: u32RETRY_DELAY= (seconds).
expire_time: u32EXPIRE_TIME= (minutes; TCP keepalive).
tcp_connect_timeout: f64TRANSPORT_CONNECT_TIMEOUT / CONNECT_TIMEOUT (seconds).
sdu: u32§load_balance: boolLOAD_BALANCE=ON.
failover: boolFAILOVER=OFF.
source_route: boolSOURCE_ROUTE=ON.
use_sni: boolUSE_SNI=ON.
extra: Vec<(String, String)>Unrecognised DESCRIPTION keys, passed through verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Description
impl Debug for Description
Source§impl Default for Description
impl Default for Description
Source§impl PartialEq for Description
impl PartialEq for Description
Source§fn eq(&self, other: &Description) -> bool
fn eq(&self, other: &Description) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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