pub enum BackgroundActivity {
Idle,
Loading(FileProgress),
Saving(FileProgress),
}Expand description
Current background activity of a DocumentSession or EditorTab.
Variants§
Implementations§
Source§impl BackgroundActivity
impl BackgroundActivity
Sourcepub fn loading_state(&self) -> Option<&FileProgress>
pub fn loading_state(&self) -> Option<&FileProgress>
Returns the current loading progress when a background open is active.
Sourcepub fn loading_phase(&self) -> Option<LoadPhase>
pub fn loading_phase(&self) -> Option<LoadPhase>
Returns the current loading phase when a background open is active.
Sourcepub fn save_state(&self) -> Option<&FileProgress>
pub fn save_state(&self) -> Option<&FileProgress>
Returns the current save progress when a background save is active.
Sourcepub fn progress(&self) -> Option<&FileProgress>
pub fn progress(&self) -> Option<&FileProgress>
Returns whichever file-backed progress is currently active.
Trait Implementations§
Source§impl Clone for BackgroundActivity
impl Clone for BackgroundActivity
Source§fn clone(&self) -> BackgroundActivity
fn clone(&self) -> BackgroundActivity
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 BackgroundActivity
impl Debug for BackgroundActivity
Source§impl PartialEq for BackgroundActivity
impl PartialEq for BackgroundActivity
impl Eq for BackgroundActivity
impl StructuralPartialEq for BackgroundActivity
Auto Trait Implementations§
impl Freeze for BackgroundActivity
impl RefUnwindSafe for BackgroundActivity
impl Send for BackgroundActivity
impl Sync for BackgroundActivity
impl Unpin for BackgroundActivity
impl UnsafeUnpin for BackgroundActivity
impl UnwindSafe for BackgroundActivity
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