pub struct ChanceHandle { /* private fields */ }Expand description
Remote control for a ChancePredicate’s active percentage.
Cloning shares the same atomic — multiple owners observe and
mutate the same value. Reads are Relaxed since per-span
freshness is not required; updates are visible to the next roll.
Implementations§
Trait Implementations§
Source§impl Clone for ChanceHandle
impl Clone for ChanceHandle
Source§fn clone(&self) -> ChanceHandle
fn clone(&self) -> ChanceHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChanceHandle
impl RefUnwindSafe for ChanceHandle
impl Send for ChanceHandle
impl Sync for ChanceHandle
impl Unpin for ChanceHandle
impl UnsafeUnpin for ChanceHandle
impl UnwindSafe for ChanceHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more