Skip to content

Example Doesnt Work : Need to implement ActorFactory in the First example from the docs #176

Description

@revoltez

i followed the tutorial in the docs and copied and pasted the example code and the compiler shows a red squiggly line under sys.actor_of with following error :
the trait bound MyActor: Default is not satisfied required because of the requirements on the impl of ActorFactory for MyActor

PS : and even after i implemented the ActorFactory trait and run the project the thread panics

Linux mint 19.1
rustc1.51.0
stable-x86_64-unknown-linux-gnu (default)
cargo 1.51.1
rustup 1.24.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions