pub struct System { /* private fields */ }Implementations§
Source§impl System
impl System
pub fn oneshot<T>() -> Channel<T, ONESHOT>
pub fn bounded<T>(buffer: usize) -> Channel<T, UNLIMITED>
Sourcepub async fn run<F: FnOnce(&mut Self)>(f: F) -> Result
pub async fn run<F: FnOnce(&mut Self)>(f: F) -> Result
Builds and executes a system, blocking until completion.
Examples found in repository?
More examples
Sourcepub fn spawn<F>(&mut self, task: F) -> AbortHandle
pub fn spawn<F>(&mut self, task: F) -> AbortHandle
pub async fn execute(self) -> Result
Sourcepub fn read_stdin<T>(&mut self) -> Inputs<T>
pub fn read_stdin<T>(&mut self) -> Inputs<T>
Examples found in repository?
More examples
Sourcepub fn write_stdout<T>(&mut self) -> Outputs<T>
pub fn write_stdout<T>(&mut self) -> Outputs<T>
Examples found in repository?
More examples
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
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