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<()>
👎Deprecated:
queues were deprecated in 3.0 and will be removed in a future version. Use actions and store pending work in SQLite. See https://rivet.dev/actors/docs/deprecated/queues
pub async fn send_and_wait( &self, name: &str, body: impl Serialize, opts: SendAndWaitOpts, ) -> Result<QueueSendResult>
👎Deprecated:
queues were deprecated in 3.0 and will be removed in a future version. Use actions and store pending work in SQLite. See https://rivet.dev/actors/docs/deprecated/queues
pub async fn fetch( &self, path: &str, method: Method, headers: HeaderMap, body: Option<Bytes>, ) -> Result<Response>
Sourcepub async fn resolve_handle(&self) -> Result<ResolvedActorHandle>
pub async fn resolve_handle(&self) -> Result<ResolvedActorHandle>
Resolves this query to a concrete actor, preserving get-or-create behavior for creating handles.
Sourcepub async fn resolve_optional(&self) -> Result<Option<ResolvedActorHandle>>
pub async fn resolve_optional(&self) -> Result<Option<ResolvedActorHandle>>
Resolves a non-creating actor query without collapsing absence into a stringly error. Get-or-create and create queries are rejected because their absence has different semantics.
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 Forget 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