pub struct ConnectionManager { /* private fields */ }Implementations§
Source§impl ConnectionManager
impl ConnectionManager
pub async fn new( url: String, config: ConnectionConfig, frame_tx: Sender<Frame>, ) -> Result<Self, HyperStackError>
pub async fn state(&self) -> ConnectionState
pub async fn last_error(&self) -> Option<Arc<HyperStackError>>
pub async fn last_socket_issue(&self) -> Option<SocketIssue>
pub fn subscribe_socket_issues(&self) -> Receiver<SocketIssue>
pub async fn ensure_subscription(&self, view: &str, key: Option<&str>)
pub async fn ensure_subscription_with_opts( &self, view: &str, key: Option<&str>, opts: SubscriptionOptions, )
pub async fn subscribe(&self, sub: Subscription)
pub async fn unsubscribe(&self, unsub: Unsubscription)
pub async fn disconnect(&self)
Trait Implementations§
Source§impl Clone for ConnectionManager
impl Clone for ConnectionManager
Source§fn clone(&self) -> ConnectionManager
fn clone(&self) -> ConnectionManager
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 moreAuto Trait Implementations§
impl Freeze for ConnectionManager
impl !RefUnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl UnsafeUnpin for ConnectionManager
impl !UnwindSafe for ConnectionManager
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