Struct dittolive_ditto::transport::Connect
source · pub struct Connect {
pub tcp_servers: HashSet<String>,
pub websocket_urls: HashSet<String>,
pub retry_interval: Duration,
}
Fields§
§tcp_servers: HashSet<String>
A set of TCP servers to attempt connection to.
websocket_urls: HashSet<String>
A set of websocket servers to attempt connection to.
retry_interval: Duration
The retry interval between failed connection attempts. For cross-compatibility, this must be less than 2^32 - 1 milliseconds.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Connect
impl<'de> Deserialize<'de> for Connect
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
source§impl PartialEq<Connect> for Connect
impl PartialEq<Connect> for Connect
impl Eq for Connect
impl StructuralEq for Connect
impl StructuralPartialEq for Connect
Auto Trait Implementations§
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnwindSafe for Connect
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more