pub struct BibleLoadProgress {
pub phase: BibleLoadPhase,
pub fraction: f32,
pub phase_fraction: f32,
}Expand description
Snapshot delivered to a load-progress callback.
Fields§
§phase: BibleLoadPhaseCurrent phase.
fraction: f32Overall completion fraction in the inclusive range 0.0..=1.0.
phase_fraction: f32Completion fraction within the current phase.
Implementations§
Source§impl BibleLoadProgress
impl BibleLoadProgress
Sourcepub fn new(
phase: BibleLoadPhase,
fraction: f32,
phase_fraction: f32,
) -> Result<Self, ModelError>
pub fn new( phase: BibleLoadPhase, fraction: f32, phase_fraction: f32, ) -> Result<Self, ModelError>
Construct a validated progress snapshot.
Trait Implementations§
Source§impl Clone for BibleLoadProgress
impl Clone for BibleLoadProgress
Source§fn clone(&self) -> BibleLoadProgress
fn clone(&self) -> BibleLoadProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BibleLoadProgress
Source§impl Debug for BibleLoadProgress
impl Debug for BibleLoadProgress
Source§impl<'de> Deserialize<'de> for BibleLoadProgress
impl<'de> Deserialize<'de> for BibleLoadProgress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BibleLoadProgress
impl PartialEq for BibleLoadProgress
Source§impl Serialize for BibleLoadProgress
impl Serialize for BibleLoadProgress
impl StructuralPartialEq for BibleLoadProgress
Auto Trait Implementations§
impl Freeze for BibleLoadProgress
impl RefUnwindSafe for BibleLoadProgress
impl Send for BibleLoadProgress
impl Sync for BibleLoadProgress
impl Unpin for BibleLoadProgress
impl UnsafeUnpin for BibleLoadProgress
impl UnwindSafe for BibleLoadProgress
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