Function dioxus::prelude::current_owner

source ·
pub fn current_owner<S>() -> Owner<S>
where S: AnyStorage,
Expand description

Returns the current owner. This owner will be used to drop any Copy state that is created by the generational-box crate.

If an owner has been set with with_owner, that owner will be returned. Otherwise, the owner from the current scope will be returned.