Expand description
Prelude module to be imported when working with yew-agent.
This module re-exports the frequently used types from the crate.
Re-exports§
pub use crate::oneshot::UseOneshotRunnerHandle;pub use crate::oneshot::use_oneshot_runner;pub use crate::reactor::ReactorEvent;pub use crate::reactor::UseReactorBridgeHandle;pub use crate::reactor::UseReactorSubscriptionHandle;pub use crate::reactor::use_reactor_bridge;pub use crate::reactor::use_reactor_subscription;pub use crate::scope_ext::AgentScopeExt;pub use crate::scope_ext::ReactorBridgeHandle;pub use crate::scope_ext::WorkerBridgeHandle;pub use crate::worker::UseWorkerBridgeHandle;pub use crate::worker::UseWorkerSubscriptionHandle;pub use crate::worker::use_worker_bridge;pub use crate::worker::use_worker_subscription;
Structs§
- Reactor
Scope - A handle to communicate with bridges.
- Worker
Scope - This struct holds a reference to a component and to a global scheduler.
Enums§
- Reach
- The reachability of an agent.
Traits§
- Registrable
- A trait to enable public workers being registered in a web worker.
- Spawnable
- A Worker that can be spawned by a spawner.