pub enum ConnectStrategy {
Simple,
Retry,
AlternateWithRetry,
}Expand description
Connection strategy for connecting to Rithmic servers.
Variants§
Simple
Single connection attempt. Recommended for most users.
Retry
Retry same URL indefinitely with exponential backoff (capped at 60s).
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 · 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 ConnectStrategy
impl Debug for ConnectStrategy
Source§impl PartialEq for ConnectStrategy
impl PartialEq for ConnectStrategy
impl Copy for ConnectStrategy
impl Eq 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 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