pub struct BackendHandle { /* private fields */ }Expand description
A running build: an event stream to render + a control half (cancel/wait).
Implementations§
Source§impl BackendHandle
impl BackendHandle
Sourcepub fn spawn(
rx: Receiver<BuildEvent>,
cancel: CancellationToken,
outcome: JoinHandle<Result<BuildOutcome>>,
) -> Self
pub fn spawn( rx: Receiver<BuildEvent>, cancel: CancellationToken, outcome: JoinHandle<Result<BuildOutcome>>, ) -> Self
Construct from a spawned run task that emits events into rx and
resolves to an outcome.
Sourcepub fn into_parts(self) -> (EventStream, Control)
pub fn into_parts(self) -> (EventStream, Control)
Split into the event stream (move into a renderer task) and control.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BackendHandle
impl !Sync for BackendHandle
impl !UnwindSafe for BackendHandle
impl Freeze for BackendHandle
impl Send for BackendHandle
impl Unpin for BackendHandle
impl UnsafeUnpin for BackendHandle
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