pub struct ClientConfig {
pub server: String,
pub mtu: u16,
pub encryption: EncryptionMethod,
pub receive_poll_ms: u64,
pub reconnect: ReconnectPolicy,
pub segment_routing: Option<SegmentRoutingConfig>,
}Expand description
iWAN data-plane settings.
Passwords are passed separately to crate::Client::new.
Fields§
§server: String§mtu: u16§encryption: EncryptionMethod§receive_poll_ms: u64§reconnect: ReconnectPolicy§segment_routing: Option<SegmentRoutingConfig>Implementations§
Source§impl ClientConfig
impl ClientConfig
pub fn new(server: impl Into<String>) -> Self
pub fn validate(&self) -> Result<()>
pub fn resolve_server(&self) -> Result<SocketAddr>
pub const fn receive_poll(&self) -> Duration
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl<'de> Deserialize<'de> for ClientConfig
impl<'de> Deserialize<'de> for ClientConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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