pub struct Runtime<I> { /* private fields */ }Implementations§
Source§impl<I> Runtime<I>
impl<I> Runtime<I>
pub fn pinned(workers: impl IntoIterator<Item = (u16, I)>) -> Result<Self>
Sourcepub fn controlled(
workers: impl IntoIterator<Item = (u16, I)>,
) -> Result<(Self, Control)>
pub fn controlled( workers: impl IntoIterator<Item = (u16, I)>, ) -> Result<(Self, Control)>
Builds a runtime whose process wait can be completed by the returned single-use control authority instead of a process signal.
pub fn run<N>( self, entry: fn(I, Context) -> Result<Requested<Shutdown>>, notify: N, ) -> Result<()>
Auto Trait Implementations§
impl<I> !RefUnwindSafe for Runtime<I>
impl<I> !Sync for Runtime<I>
impl<I> Freeze for Runtime<I>
impl<I> Send for Runtime<I>
impl<I> Unpin for Runtime<I>
impl<I> UnsafeUnpin for Runtime<I>where
Vec<Worker<I>>: UnsafeUnpin,
impl<I> UnwindSafe for Runtime<I>where
Vec<Worker<I>>: UnwindSafe,
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