pub struct CompilationProgress {
phase_name: Option<Cow<'static, str>>,
phase_step_count: Option<u64>,
phase_step: Option<u64>,
}Expand description
Indicates the current compilation progress.
All fields are kept private for forwards compatibility and future extension. Use the provided methods to access progress data.
Fields§
§phase_name: Option<Cow<'static, str>>§phase_step_count: Option<u64>§phase_step: Option<u64>Implementations§
Source§impl CompilationProgress
impl CompilationProgress
Sourcepub fn new(
phase_name: Option<Cow<'static, str>>,
phase_step_count: Option<u64>,
phase_step: Option<u64>,
) -> Self
pub fn new( phase_name: Option<Cow<'static, str>>, phase_step_count: Option<u64>, phase_step: Option<u64>, ) -> Self
Creates a new CompilationProgress.
Sourcepub fn phase_name(&self) -> Option<&str>
pub fn phase_name(&self) -> Option<&str>
Returns the name of the phase currently being executed.
Sourcepub fn phase_step_count(&self) -> Option<u64>
pub fn phase_step_count(&self) -> Option<u64>
Returns the total number of steps in the current phase, if known.
Sourcepub fn phase_step(&self) -> Option<u64>
pub fn phase_step(&self) -> Option<u64>
Returns the index of the current step within the phase, if known.
Trait Implementations§
Source§impl Clone for CompilationProgress
impl Clone for CompilationProgress
Source§fn clone(&self) -> CompilationProgress
fn clone(&self) -> CompilationProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompilationProgress
impl Debug for CompilationProgress
Source§impl Default for CompilationProgress
impl Default for CompilationProgress
Source§fn default() -> CompilationProgress
fn default() -> CompilationProgress
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompilationProgress
impl RefUnwindSafe for CompilationProgress
impl Send for CompilationProgress
impl Sync for CompilationProgress
impl Unpin for CompilationProgress
impl UnwindSafe for CompilationProgress
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.