pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(config: ClientConfig) -> Self
pub fn from_endpoint(endpoint: impl Into<String>) -> Self
pub fn get( &self, name: &str, key: Vec<String>, opts: GetOptions, ) -> Result<ActorHandle>
pub fn get_for_id( &self, name: &str, actor_id: &str, opts: GetOptions, ) -> Result<ActorHandle>
pub fn get_or_create( &self, name: &str, key: Vec<String>, opts: GetOrCreateOptions, ) -> Result<ActorHandle>
pub async fn create( &self, name: &str, key: Vec<String>, opts: CreateOptions, ) -> Result<ActorHandle>
pub fn disconnect(self)
pub fn dispose(self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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