pub struct WebsocketConnectionState {
pub reconnection_pending: bool,
pub renewal_pending: bool,
pub close_initiated: bool,
pub pending_requests: HashMap<String, PendingRequest>,
pub pending_subscriptions: VecDeque<String>,
pub stream_callbacks: HashMap<String, Vec<Arc<dyn Fn(&Value) + Send + Sync + 'static>>>,
pub handler: Option<Arc<dyn WebsocketHandler>>,
pub ws_write_tx: Option<UnboundedSender<Message>>,
}Fields§
§reconnection_pending: bool§renewal_pending: bool§close_initiated: bool§pending_requests: HashMap<String, PendingRequest>§pending_subscriptions: VecDeque<String>§stream_callbacks: HashMap<String, Vec<Arc<dyn Fn(&Value) + Send + Sync + 'static>>>§handler: Option<Arc<dyn WebsocketHandler>>§ws_write_tx: Option<UnboundedSender<Message>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebsocketConnectionState
impl !RefUnwindSafe for WebsocketConnectionState
impl Send for WebsocketConnectionState
impl Sync for WebsocketConnectionState
impl Unpin for WebsocketConnectionState
impl !UnwindSafe for WebsocketConnectionState
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