pub struct System { /* private fields */ }Implementations§
Source§impl System
impl System
pub fn oneshot<T>() -> Channel<T, async_flow::::tokio::system::{impl#0}::oneshot::{constant#0}>
pub fn bounded<T>( buffer: usize, ) -> Channel<T, async_flow::::tokio::system::{impl#0}::bounded::{constant#0}>
Sourcepub async fn run<F>(f: F) -> Result<(), Error>
pub async fn run<F>(f: F) -> Result<(), Error>
Builds and executes a system, blocking until completion.
pub fn connect<T>(&mut self, inputs: Inputs<T>, outputs: Outputs<T>)where
T: Send + 'static,
pub fn spawn<F>(&mut self, task: F) -> AbortHandle
pub async fn execute(self) -> Result<(), Error>
pub fn read_stdin<T>(&mut self) -> Inputs<T>
pub fn write_stdout<T>(&mut self) -> Outputs<T>
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