pub struct ActorHandle { /* private fields */ }Implementations§
Source§impl ActorHandle
impl ActorHandle
pub fn new( remote_manager: RemoteManager, params: Option<JsonValue>, query: ActorQuery, client_shutdown_tx: Arc<Sender<()>>, transport_kind: TransportKind, encoding_kind: EncodingKind, ) -> Self
pub fn connect(&self) -> ActorConnection
Methods from Deref<Target = ActorHandleStateless>§
pub async fn action( &self, name: &str, args: Vec<JsonValue>, ) -> Result<JsonValue>
pub async fn send( &self, name: &str, body: impl Serialize, _opts: SendOpts, ) -> Result<()>
pub async fn send_and_wait( &self, name: &str, body: impl Serialize, opts: SendAndWaitOpts, ) -> Result<QueueSendResult>
pub async fn fetch( &self, path: &str, method: Method, headers: HeaderMap, body: Option<Bytes>, ) -> Result<Response>
pub async fn web_socket( &self, path: &str, protocols: Option<Vec<String>>, ) -> Result<RawWebSocket>
pub fn gateway_url(&self) -> Result<String>
pub fn get_gateway_url(&self) -> Result<String>
pub async fn reload(&self) -> Result<()>
pub async fn resolve(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ActorHandle
impl !RefUnwindSafe for ActorHandle
impl !UnwindSafe for ActorHandle
impl Send for ActorHandle
impl Sync for ActorHandle
impl Unpin for ActorHandle
impl UnsafeUnpin for ActorHandle
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