pub struct Sync { /* private fields */ }Expand description
Provides access to the thread-safe parts of the runtime for synchronous actors.
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 Sync
impl Sync
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
Auto Trait Implementations
impl RefUnwindSafe for Sync
impl Send for Sync
impl Sync for Sync
impl Unpin for Sync
impl UnwindSafe for Sync
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