Skip to main content

TypedClientExt

Trait TypedClientExt 

Source
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§

Source

fn get_typed<A: Actor>( &self, name: &str, key: impl IntoActorKey, opts: GetOptions, ) -> Result<TypedActorHandle<A>>

Source

fn get_or_create_typed<A: Actor>( &self, name: &str, key: impl IntoActorKey, opts: GetOrCreateOptions, ) -> Result<TypedActorHandle<A>>

Provided Methods§

Source

fn get_typed_default<A: Actor>( &self, name: &str, key: impl IntoActorKey, ) -> Result<TypedActorHandle<A>>

Source

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".

Implementations on Foreign Types§

Source§

impl TypedClientExt for Client

Source§

fn get_typed<A: Actor>( &self, name: &str, key: impl IntoActorKey, opts: GetOptions, ) -> Result<TypedActorHandle<A>>

Source§

fn get_or_create_typed<A: Actor>( &self, name: &str, key: impl IntoActorKey, opts: GetOrCreateOptions, ) -> Result<TypedActorHandle<A>>

Implementors§