pub struct FileProgress { /* private fields */ }Expand description
Typed file-backed progress for background open/save work.
Implementations§
Source§impl FileProgress
impl FileProgress
Sourcepub fn completed_bytes(&self) -> u64
pub fn completed_bytes(&self) -> u64
Returns the completed byte count.
For background loads this tracks source bytes inspected by the open path
before the document becomes ready. Continued line indexing after the open
completes is exposed separately through document-local
indexing_state().
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
Returns the total byte count.
For background loads this is the source file length. For background saves this is the destination byte length being written.
Sourcepub fn load_phase(&self) -> Option<LoadPhase>
pub fn load_phase(&self) -> Option<LoadPhase>
Returns the current load phase when this progress value comes from a background open.
Trait Implementations§
Source§impl Clone for FileProgress
impl Clone for FileProgress
Source§fn clone(&self) -> FileProgress
fn clone(&self) -> FileProgress
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 FileProgress
impl Debug for FileProgress
Source§impl PartialEq for FileProgress
impl PartialEq for FileProgress
impl Eq for FileProgress
impl StructuralPartialEq for FileProgress
Auto Trait Implementations§
impl Freeze for FileProgress
impl RefUnwindSafe for FileProgress
impl Send for FileProgress
impl Sync for FileProgress
impl Unpin for FileProgress
impl UnsafeUnpin for FileProgress
impl UnwindSafe for FileProgress
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