pub struct StreamConfig { /* private fields */ }Expand description
Explicit timeouts and retry settings for the standard stream protocol.
Implementations§
Source§impl StreamConfig
impl StreamConfig
Sourcepub fn new(
handshake_timeout: Duration,
receive_timeout: Duration,
connect_attempts: u32,
retry_delay: Duration,
) -> Result<Self, WebSocketError>
pub fn new( handshake_timeout: Duration, receive_timeout: Duration, connect_attempts: u32, retry_delay: Duration, ) -> Result<Self, WebSocketError>
Creates a configuration using FMP’s documented nested login response.
Timeouts and attempt count must be positive. Transient connection failures are retried before login; active connections require an explicit reconnect after failure.
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Auto Trait Implementations§
impl !RefUnwindSafe for StreamConfig
impl !UnwindSafe for StreamConfig
impl Freeze for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnsafeUnpin for StreamConfig
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