pub struct GlobalSignalsRuntime;Expand description
A plain SignalsRuntimeRef implementation that represents a static signals runtime.
๐ง This implementation is currently not optimised. ๐ง
ยงFeatures
Enable the global_signals_runtime Cargo feature to implement SignalsRuntimeRef for this type.
ยงLogic
This runtime is guaranteed to have settled whenever the across all threads last borrow of it ceases, but only regarding effects originating on the current thread. Effects from other threads wonโt necessarily be visible without external synchronisation points.
(This means that in addition to transiently borrowing calls, returned Futures
may cause the GlobalSignalsRuntime not to settle until they are dropped.)
Otherwise, it makes no additional guarantees over those specified in SignalsRuntimeRefโs documentation.
ยงPanics
SignalsRuntimeRef::Symbols associated with the GlobalSignalsRuntime are ordered.
Given GSRSymbols a and b, b can depend on a only iff a < b (by creation order).
Trait Implementationsยง
Sourceยงimpl Clone for GlobalSignalsRuntime
impl Clone for GlobalSignalsRuntime
Sourceยงfn clone(&self) -> GlobalSignalsRuntime
fn clone(&self) -> GlobalSignalsRuntime
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for GlobalSignalsRuntime
impl Debug for GlobalSignalsRuntime
Sourceยงimpl Default for GlobalSignalsRuntime
impl Default for GlobalSignalsRuntime
Sourceยงfn default() -> GlobalSignalsRuntime
fn default() -> GlobalSignalsRuntime
Sourceยงimpl Hash for GlobalSignalsRuntime
impl Hash for GlobalSignalsRuntime
Sourceยงimpl Ord for GlobalSignalsRuntime
impl Ord for GlobalSignalsRuntime
Sourceยงfn cmp(&self, other: &GlobalSignalsRuntime) -> Ordering
fn cmp(&self, other: &GlobalSignalsRuntime) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialEq for GlobalSignalsRuntime
impl PartialEq for GlobalSignalsRuntime
Sourceยงimpl PartialOrd for GlobalSignalsRuntime
impl PartialOrd for GlobalSignalsRuntime
Sourceยงimpl SignalsRuntimeRef for GlobalSignalsRuntime
The feature "global_signals_runtime" is required to enable this implementation.
impl SignalsRuntimeRef for GlobalSignalsRuntime
The feature "global_signals_runtime" is required to enable this implementation.
Sourceยงtype CallbackTableTypes = GlobalCallbackTableTypes
type CallbackTableTypes = GlobalCallbackTableTypes
Sourceยงtype UpdateEager<'f, T: 'f, F: 'f> = DetachedFuture<'f, Result<T, F>>
type UpdateEager<'f, T: 'f, F: 'f> = DetachedFuture<'f, Result<T, F>>
Sourceยงfn next_id(&self) -> GSRSymbol
fn next_id(&self) -> GSRSymbol
SignalsRuntimeRef::Symbol for this instance. Read moreSourceยงfn record_dependency(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
)
fn record_dependency( &self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol, )
id as dependency of that context. Read moreSourceยงunsafe fn start<T, D>(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
f: impl FnOnce() -> T,
callback_table: *const CallbackTable<D, <GlobalSignalsRuntime as SignalsRuntimeRef>::CallbackTableTypes>,
callback_data: *const D,
) -> Twhere
D: ?Sized,
unsafe fn start<T, D>(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
f: impl FnOnce() -> T,
callback_table: *const CallbackTable<D, <GlobalSignalsRuntime as SignalsRuntimeRef>::CallbackTableTypes>,
callback_data: *const D,
) -> Twhere
D: ?Sized,
id. Read moreSourceยงfn stop(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
fn stop(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
id. Read moreSourceยงfn update_dependency_set<T>(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
f: impl FnOnce() -> T,
) -> T
fn update_dependency_set<T>( &self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol, f: impl FnOnce() -> T, ) -> T
f while recording dependencies for id,
updating the recorded dependencies for id to the new set. Read moreSourceยงfn subscribe(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
fn subscribe(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
id. Read moreSourceยงfn unsubscribe(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
fn unsubscribe(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
id. Read moreSourceยงfn update_or_enqueue(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
f: impl Send + FnOnce() -> Propagation + 'static,
)
fn update_or_enqueue( &self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol, f: impl Send + FnOnce() -> Propagation + 'static, )
Sourceยงfn update_eager<'f, T, F>(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
f: F,
) -> <GlobalSignalsRuntime as SignalsRuntimeRef>::UpdateEager<'f, T, F>
fn update_eager<'f, T, F>( &self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol, f: F, ) -> <GlobalSignalsRuntime as SignalsRuntimeRef>::UpdateEager<'f, T, F>
Sourceยงfn update_blocking<T>(
&self,
id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol,
f: impl FnOnce() -> (Propagation, T),
) -> T
fn update_blocking<T>( &self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol, f: impl FnOnce() -> (Propagation, T), ) -> T
Sourceยงfn run_detached<T>(&self, f: impl FnOnce() -> T) -> T
fn run_detached<T>(&self, f: impl FnOnce() -> T) -> T
f exempted from any outer dependency recordings. Read moreSourceยงfn refresh(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
fn refresh(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
Sourceยงfn purge(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
fn purge(&self, id: <GlobalSignalsRuntime as SignalsRuntimeRef>::Symbol)
id. Read moreSourceยงfn hint_batched_updates<T>(&self, f: impl FnOnce() -> T) -> T
fn hint_batched_updates<T>(&self, f: impl FnOnce() -> T) -> T
impl Copy for GlobalSignalsRuntime
impl Eq for GlobalSignalsRuntime
impl StructuralPartialEq for GlobalSignalsRuntime
Auto Trait Implementationsยง
impl Freeze for GlobalSignalsRuntime
impl RefUnwindSafe for GlobalSignalsRuntime
impl Send for GlobalSignalsRuntime
impl Sync for GlobalSignalsRuntime
impl Unpin for GlobalSignalsRuntime
impl UnwindSafe for GlobalSignalsRuntime
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Sourceยงfn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Sourceยงfn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSourceยงfn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSourceยงfn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Sourceยงfn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Sourceยงfn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Sourceยงfn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Sourceยงfn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Sourceยงimpl<T> Tap for T
impl<T> Tap for T
Sourceยงfn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSourceยงfn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSourceยงfn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSourceยงfn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSourceยงfn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSourceยงfn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSourceยงfn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Sourceยงfn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Sourceยงfn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Sourceยงfn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Sourceยงfn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Sourceยงfn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Sourceยงfn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.