pub struct KeepaliveConfig {
pub ping_interval: TimeDelta,
pub keepalive: TimeDelta,
}Fields§
§ping_interval: TimeDeltaHow often the switchboard should send PING messages to the supervisor.
keepalive: TimeDeltaMinimum time without a PONG response before the switchboard closes the connection.
Trait Implementations§
Source§impl Clone for KeepaliveConfig
impl Clone for KeepaliveConfig
Source§fn clone(&self) -> KeepaliveConfig
fn clone(&self) -> KeepaliveConfig
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 KeepaliveConfig
impl Debug for KeepaliveConfig
Source§impl<'de> Deserialize<'de> for KeepaliveConfig
impl<'de> Deserialize<'de> for KeepaliveConfig
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 KeepaliveConfig
impl RefUnwindSafe for KeepaliveConfig
impl Send for KeepaliveConfig
impl Sync for KeepaliveConfig
impl Unpin for KeepaliveConfig
impl UnwindSafe for KeepaliveConfig
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