yew_agent

Module prelude

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

ReactorScope
A handle to communicate with bridges.
WorkerScope
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.

Attribute Macros§

oneshot
A procedural macro to create oneshot agents.
reactor
A procedural macro to create reactor agents.