This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

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::ReactorScope;
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;
pub use crate::worker::WorkerScope;
pub use crate::Registrable;
pub use crate::Spawnable;

Enums§

Reach
The reachability of an agent.

Attribute Macros§

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