pub struct ActorHandleStateless { /* private fields */ }Implementations§
Source§impl ActorHandleStateless
impl ActorHandleStateless
pub fn new( remote_manager: RemoteManager, params: Option<JsonValue>, encoding_kind: EncodingKind, query: ActorQuery, ) -> Self
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>
Auto Trait Implementations§
impl !Freeze for ActorHandleStateless
impl !RefUnwindSafe for ActorHandleStateless
impl !UnwindSafe for ActorHandleStateless
impl Send for ActorHandleStateless
impl Sync for ActorHandleStateless
impl Unpin for ActorHandleStateless
impl UnsafeUnpin for ActorHandleStateless
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