pub struct Sheet { /* private fields */ }Expand description
The progress sheet of one build, as the host holds it: it reads the rows and asks the build to stop.
Sheet::start creates a sheet and gives its two halves: this one, and
the root row as a Task, which the host lends to the work and ends when
the build is over. A Sheet is cheap to clone and may be read from any
thread.
Implementations§
Source§impl Sheet
impl Sheet
Sourcepub fn start(
root: &Kind,
label: Option<&str>,
observer: Observer,
log_sink: Option<Arc<dyn LogSink>>,
) -> (Sheet, Task)
pub fn start( root: &Kind, label: Option<&str>, observer: Observer, log_sink: Option<Arc<dyn LogSink>>, ) -> (Sheet, Task)
Creates a sheet whose root row, of kind root and labeled label, is
running, and returns the sheet and that row.
observer holds the host’s functions that the sheet calls while the
work runs, and log_sink the sink of the log lines that the work
writes through its scopes (none: the lines go nowhere). The root row’s
start is told to the observer before this returns.
Sourcepub fn cancel(&self)
pub fn cancel(&self)
Asks the build to stop. The work sees it the next time it asks
(Scope::cancelled), and ends what it was
doing as RowState::Failed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Sheet
impl !UnwindSafe for Sheet
impl Forget for Sheet
impl Freeze for Sheet
impl Move for Sheet
impl Send for Sheet
impl Sync for Sheet
impl Unpin for Sheet
impl UnsafeUnpin for Sheet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more