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::use_oneshot_runner;
pub use crate::oneshot::UseOneshotRunnerHandle;
pub use crate::reactor::use_reactor_bridge;
pub use crate::reactor::use_reactor_subscription;
pub use crate::reactor::ReactorEvent;
pub use crate::reactor::UseReactorBridgeHandle;
pub use crate::reactor::UseReactorSubscriptionHandle;
pub use crate::scope_ext::AgentScopeExt;
pub use crate::scope_ext::ReactorBridgeHandle;
pub use crate::scope_ext::WorkerBridgeHandle;
pub use crate::worker::use_worker_bridge;
pub use crate::worker::use_worker_subscription;
pub use crate::worker::UseWorkerBridgeHandle;
pub use crate::worker::UseWorkerSubscriptionHandle;
Structs§
- A handle to communicate with bridges.
- This struct holds a reference to a component and to a global scheduler.
Enums§
- The reachability of an agent.
Traits§
- A trait to enable public workers being registered in a web worker.
- A Worker that can be spawned by a spawner.
Attribute Macros§
- A procedural macro to create oneshot agents.
- A procedural macro to create reactor agents.