#[non_exhaustive]pub enum ConnectStrategy {
Simple,
Retry,
AlternateWithRetry,
}Expand description
Connection strategy for connecting to Rithmic servers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Simple
Single connection attempt. Fast-fail, no retries.
Retry
Retry same URL indefinitely with linear backoff (500 ms more per attempt, capped at 60s, jittered ±50%). Recommended for most users.
AlternateWithRetry
Alternates between primary and beta URLs indefinitely. Useful when main server has issues.
Trait Implementations§
Source§impl Clone for ConnectStrategy
impl Clone for ConnectStrategy
Source§fn clone(&self) -> ConnectStrategy
fn clone(&self) -> ConnectStrategy
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 moreimpl Copy for ConnectStrategy
Source§impl Debug for ConnectStrategy
impl Debug for ConnectStrategy
impl Eq for ConnectStrategy
Source§impl PartialEq for ConnectStrategy
impl PartialEq for ConnectStrategy
impl StructuralPartialEq for ConnectStrategy
Auto Trait Implementations§
impl Freeze for ConnectStrategy
impl RefUnwindSafe for ConnectStrategy
impl Send for ConnectStrategy
impl Sync for ConnectStrategy
impl Unpin for ConnectStrategy
impl UnsafeUnpin for ConnectStrategy
impl UnwindSafe for ConnectStrategy
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