pub struct FOMODWizardState {
pub current_step: usize,
pub total_steps: usize,
/* private fields */
}Fields§
§current_step: usize§total_steps: usizeImplementations§
Source§impl FOMODWizardState
impl FOMODWizardState
pub fn new() -> Self
pub fn with_installer(installer: Installer) -> Self
pub fn visible_steps(&self) -> Vec<(usize, &InstallStep)>
pub fn config(&self) -> Option<&ModuleConfig>
pub fn module_image_path(&self) -> Option<&str>
pub fn resolve_image( &self, base_path: &Path, image_path: &str, ) -> Option<PathBuf>
pub fn completion_status(&self) -> CompletionStatus
pub fn validate_step(&self, step_index: usize) -> Vec<ValidationHint>
pub fn plugin_type_at( &self, step: usize, group: usize, plugin: usize, ) -> Option<PluginType>
pub fn plugin_image_path( &self, step: usize, group: usize, plugin: usize, ) -> Option<&str>
pub fn preview_plugin( &self, step: usize, group: usize, plugin: usize, ) -> Vec<FileOperation>
pub fn preview_current(&self) -> InstallPlan
pub fn is_ready_to_install(&self) -> bool
pub fn group_type_at(&self, step: usize, group: usize) -> Option<GroupType>
pub fn select(&mut self, step: usize, group: usize, plugin_indices: Vec<usize>)
pub fn checkpoint(&mut self)
pub fn rollback(&mut self) -> bool
pub fn history_len(&self) -> usize
pub fn selections(&self) -> HashMap<(usize, usize), Vec<usize>>
pub fn detect_conflicts(&self) -> Vec<String>
pub fn resolve(&self) -> InstallPlan
pub fn default_selections(&self) -> Vec<(usize, usize, Vec<usize>)>
Trait Implementations§
Source§impl Clone for FOMODWizardState
impl Clone for FOMODWizardState
Source§impl Debug for FOMODWizardState
impl Debug for FOMODWizardState
Auto Trait Implementations§
impl Freeze for FOMODWizardState
impl RefUnwindSafe for FOMODWizardState
impl Send for FOMODWizardState
impl Sync for FOMODWizardState
impl Unpin for FOMODWizardState
impl UnsafeUnpin for FOMODWizardState
impl UnwindSafe for FOMODWizardState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().