Struct heph_rt::access::ThreadSafe
source · [−]pub struct ThreadSafe { /* private fields */ }Expand description
Provides access to the thread-safe parts of the runtime.
This implements the Access trait, which is required by various APIs to
get access to the runtime.
This is usually a part of the actor::Context, see it for more
information.
Implementations
sourceimpl ThreadSafe
impl ThreadSafe
sourcepub fn spawn_future<Fut>(&mut self, future: Fut, options: FutureOptions)where
Fut: Future<Output = ()> + Send + Sync + 'static,
pub fn spawn_future<Fut>(&mut self, future: Fut, options: FutureOptions)where
Fut: Future<Output = ()> + Send + Sync + 'static,
Spawn a thread-safe Future.
See RuntimeRef::spawn_future for more documentation.
Trait Implementations
sourceimpl Clone for ThreadSafe
impl Clone for ThreadSafe
sourcefn clone(&self) -> ThreadSafe
fn clone(&self) -> ThreadSafe
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ThreadSafe
impl Debug for ThreadSafe
sourceimpl<S, NA> Spawn<S, NA, ThreadSafe> for Runtimewhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
impl<S, NA> Spawn<S, NA, ThreadSafe> for Runtimewhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
sourceimpl<S, NA> Spawn<S, NA, ThreadSafe> for RuntimeRefwhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
impl<S, NA> Spawn<S, NA, ThreadSafe> for RuntimeRefwhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
sourceimpl<S, NA> Spawn<S, NA, ThreadSafe> for Syncwhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
impl<S, NA> Spawn<S, NA, ThreadSafe> for Syncwhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
sourceimpl<S, NA> Spawn<S, NA, ThreadSafe> for ThreadLocalwhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
impl<S, NA> Spawn<S, NA, ThreadSafe> for ThreadLocalwhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
sourceimpl<S, NA> Spawn<S, NA, ThreadSafe> for ThreadSafewhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
impl<S, NA> Spawn<S, NA, ThreadSafe> for ThreadSafewhere
S: Supervisor<NA> + Send + Sync + 'static,
NA: NewActor<RuntimeAccess = ThreadSafe> + Send + Sync + 'static,
NA::Actor: Send + Sync + 'static,
NA::Message: Send,
impl Access for ThreadSafe
Auto Trait Implementations
impl RefUnwindSafe for ThreadSafe
impl Send for ThreadSafe
impl Sync for ThreadSafe
impl Unpin for ThreadSafe
impl UnwindSafe for ThreadSafe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more