pub enum InitProgressEvent {
Starting {
total_steps: u64,
},
Step {
step: u64,
message: String,
},
PromptCreateRemoteIndex,
Failed {
error_msg: String,
},
Complete {
message: String,
},
}
Expand description
Events emitted during an init
(initialization) operation.
Variants§
Starting
Indicates the start of the initialization process.
Step
Reports progress on a specific step during initialization.
PromptCreateRemoteIndex
Indicates that user confirmation is required to create a remote index.
The InitCallback
should return Ok(Some(true))
to proceed or Ok(Some(false))
to skip.
Failed
Indicates that the initialization process has failed.
Complete
Indicates that the initialization process has completed successfully.
Trait Implementations§
Source§impl Clone for InitProgressEvent
impl Clone for InitProgressEvent
Source§fn clone(&self) -> InitProgressEvent
fn clone(&self) -> InitProgressEvent
Returns a copy 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 InitProgressEvent
impl Debug for InitProgressEvent
Source§impl<'de> Deserialize<'de> for InitProgressEvent
impl<'de> Deserialize<'de> for InitProgressEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InitProgressEvent
impl PartialEq for InitProgressEvent
Source§impl Serialize for InitProgressEvent
impl Serialize for InitProgressEvent
impl Eq for InitProgressEvent
impl StructuralPartialEq for InitProgressEvent
Auto Trait Implementations§
impl Freeze for InitProgressEvent
impl RefUnwindSafe for InitProgressEvent
impl Send for InitProgressEvent
impl Sync for InitProgressEvent
impl Unpin for InitProgressEvent
impl UnwindSafe for InitProgressEvent
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