pub trait TypedClientExt {
// Required methods
fn get_typed<A: Actor>(
&self,
name: &str,
key: impl IntoActorKey,
opts: GetOptions,
) -> Result<TypedActorHandle<A>>;
fn get_or_create_typed<A: Actor>(
&self,
name: &str,
key: impl IntoActorKey,
opts: GetOrCreateOptions,
) -> Result<TypedActorHandle<A>>;
// Provided methods
fn get_typed_default<A: Actor>(
&self,
name: &str,
key: impl IntoActorKey,
) -> Result<TypedActorHandle<A>> { ... }
fn get_or_create_typed_default<A: Actor>(
&self,
name: &str,
key: impl IntoActorKey,
) -> Result<TypedActorHandle<A>> { ... }
}Required Methods§
fn get_typed<A: Actor>( &self, name: &str, key: impl IntoActorKey, opts: GetOptions, ) -> Result<TypedActorHandle<A>>
fn get_or_create_typed<A: Actor>( &self, name: &str, key: impl IntoActorKey, opts: GetOrCreateOptions, ) -> Result<TypedActorHandle<A>>
Provided Methods§
fn get_typed_default<A: Actor>( &self, name: &str, key: impl IntoActorKey, ) -> Result<TypedActorHandle<A>>
fn get_or_create_typed_default<A: Actor>( &self, name: &str, key: impl IntoActorKey, ) -> Result<TypedActorHandle<A>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".