pub enum Message {
Progress {
n_total: usize,
n_done: LoadingProgress,
dir: Option<AbsPathBuf>,
config_version: u32,
},
Loaded {
files: Vec<(AbsPathBuf, Option<Vec<u8>>)>,
},
Changed {
files: Vec<(AbsPathBuf, Option<Vec<u8>>)>,
},
}Expand description
Message about an action taken by a Handle.
Variants§
Progress
Indicate a gradual progress.
This is supposed to be the number of loaded files.
Fields
§
n_done: LoadingProgressThe files that have been loaded successfully.
§
dir: Option<AbsPathBuf>The dir being loaded, None if its for a file.
Loaded
The handle loaded the following files’ content for the first time.
Changed
The handle loaded the following files’ content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more