pub struct Include(/* private fields */);Expand description
A running include.
Implementations§
Source§impl Include
impl Include
Sourcepub fn of(tree: &TreeHandle) -> Option<Include>
pub fn of(tree: &TreeHandle) -> Option<Include>
The include behind a tree it created.
pub fn filename(&self) -> &Path
pub fn tree(&self) -> &TreeHandle
Sourcepub async fn refresh(&self)
pub async fn refresh(&self)
Re-reads the file and reconciles the tree with it (what a watcher triggers), then waits for every pending read and write.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Include
impl !UnwindSafe for Include
impl Forget for Include
impl Freeze for Include
impl Move for Include
impl Send for Include
impl Sync for Include
impl Unpin for Include
impl UnsafeUnpin for Include
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