pub struct ActorConnectionInner { /* private fields */ }Implementations§
Source§impl ActorConnectionInner
impl ActorConnectionInner
pub async fn action( self: &Arc<Self>, method: &str, params: Vec<Value>, ) -> Result<Value>
pub async fn on_event<F>( self: &Arc<Self>, event_name: &str, callback: F, ) -> SubscriptionHandle
pub async fn on_event_raw<F>( self: &Arc<Self>, event_name: &str, callback: F, ) -> SubscriptionHandle
pub async fn once_event<F>( self: &Arc<Self>, event_name: &str, callback: F, ) -> SubscriptionHandle
pub async fn on_open<F>(self: &Arc<Self>, callback: F)
pub async fn on_close<F>(self: &Arc<Self>, callback: F)
pub async fn on_error<F>(self: &Arc<Self>, callback: F)
pub async fn on_status_change<F>(self: &Arc<Self>, callback: F)
pub fn conn_status(self: &Arc<Self>) -> ConnectionStatus
pub fn status_receiver(self: &Arc<Self>) -> Receiver<ConnectionStatus>
pub async fn disconnect(self: &Arc<Self>)
pub async fn dispose(self: &Arc<Self>)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ActorConnectionInner
impl !RefUnwindSafe for ActorConnectionInner
impl !UnwindSafe for ActorConnectionInner
impl Send for ActorConnectionInner
impl Sync for ActorConnectionInner
impl Unpin for ActorConnectionInner
impl UnsafeUnpin for ActorConnectionInner
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