pub struct LazySpecificationContent { /* private fields */ }
Expand description
Lazily loaded specification content
Implementations§
Source§impl LazySpecificationContent
impl LazySpecificationContent
Sourcepub fn new(
project_name: String,
spec_id: String,
fs_manager: FileSystemManager,
cache: ProjectManagerCache,
) -> Self
pub fn new( project_name: String, spec_id: String, fs_manager: FileSystemManager, cache: ProjectManagerCache, ) -> Self
Create a new lazy specification content loader
Sourcepub async fn get_content(&self) -> Result<&String>
pub async fn get_content(&self) -> Result<&String>
Get the specification content (loaded on first access)
Sourcepub fn is_content_loaded(&self) -> bool
pub fn is_content_loaded(&self) -> bool
Check if content is already loaded
Sourcepub fn are_tasks_loaded(&self) -> bool
pub fn are_tasks_loaded(&self) -> bool
Check if tasks are already loaded
Sourcepub fn are_notes_loaded(&self) -> bool
pub fn are_notes_loaded(&self) -> bool
Check if notes are already loaded
Sourcepub async fn preload_all(&self) -> Result<()>
pub async fn preload_all(&self) -> Result<()>
Preload all content (useful for background loading)
Sourcepub fn invalidate(&self)
pub fn invalidate(&self)
Invalidate cached data and reset lazy loaders
Trait Implementations§
Source§impl Clone for LazySpecificationContent
impl Clone for LazySpecificationContent
Source§fn clone(&self) -> LazySpecificationContent
fn clone(&self) -> LazySpecificationContent
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 moreAuto Trait Implementations§
impl Freeze for LazySpecificationContent
impl !RefUnwindSafe for LazySpecificationContent
impl Send for LazySpecificationContent
impl Sync for LazySpecificationContent
impl Unpin for LazySpecificationContent
impl !UnwindSafe for LazySpecificationContent
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