pub enum Msg {
Show 38 variants
Reload,
Loaded(Box<Loaded<Providers>>, Vec<PermissionProblem>),
Select(usize),
PickModel(usize),
New,
Cancel,
Tag(String),
Base(String),
PasteKey(String),
PickKind(usize),
PickRegion(usize),
Add,
DeleteAsked,
DeleteConfirmed,
ForgetKey,
Try,
Tried(Box<Result<Reached, AskError>>),
Refresh,
Listed(Box<Result<Vec<Model>, AskError>>),
MeasureAsked,
Measured(String, Box<Result<Measured, AskError>>),
LineupsAsked,
LineupsClosed,
LineupChosen(usize),
LineupNew,
LineupEditAsked,
LineupDeleteAsked,
LineupDeleteConfirmed,
LineupName(String),
LineupFilter(String),
LineupLooked(String),
LineupAdded(usize),
LineupStep(usize),
LineupUp,
LineupDown,
LineupRemove,
LineupSave,
LineupCancel,
}Expand description
Everything that can happen on the providers screen.
Variants§
Reload
Read the providers file again. This is also how the screen is started.
Loaded(Box<Loaded<Providers>>, Vec<PermissionProblem>)
The file was read, and how wide its permissions and its folder’s are was looked at.
Select(usize)
The selection moved to a provider.
PickModel(usize)
The selection moved to a model.
New
Open the add dialog.
Cancel
Leave the add dialog, keeping nothing.
Tag(String)
The tag was typed.
Base(String)
The address was typed.
PasteKey(String)
The key was pasted.
PickKind(usize)
A kind was chosen.
PickRegion(usize)
Where a ready-made provider answers was chosen, by its place among its kind’s regions.
Add
Add the provider the dialog describes.
DeleteAsked
Deleting the chosen provider was asked for.
DeleteConfirmed
The question was answered with yes.
ForgetKey
Forget the chosen provider’s key, keeping the provider.
Try
Try the connection to the chosen provider. Nothing else on this screen sends a request.
Tried(Box<Result<Reached, AskError>>)
The trial answered.
Refresh
Ask the chosen provider what it offers.
Listed(Box<Result<Vec<Model>, AskError>>)
The provider answered with what it offers.
MeasureAsked
Measure what the chosen model really gets on this server.
Measured(String, Box<Result<Measured, AskError>>)
The measurement finished, for the model of that name.
LineupsAsked
Open the lineups of the chosen provider.
LineupsClosed
The lineups dialog was closed, keeping whatever was already saved.
LineupChosen(usize)
A lineup of the list was chosen.
LineupNew
Start a lineup that is not there yet.
LineupEditAsked
Start the chosen lineup for changing.
LineupDeleteAsked
Deleting the chosen lineup was asked for.
LineupDeleteConfirmed
The question was answered with yes.
LineupName(String)
The name of the lineup being written was typed.
LineupFilter(String)
The provider’s models were filtered.
LineupLooked(String)
A model of the list was pointed at.
LineupAdded(usize)
The model at that place of the filtered list was put at the end of the lineup.
LineupStep(usize)
A step of the lineup was chosen.
LineupUp
The chosen step goes one place earlier.
LineupDown
The chosen step goes one place later.
LineupRemove
The chosen step comes out of the lineup.
LineupSave
The lineup being written is kept.
LineupCancel
Leave the lineup being written, keeping nothing of it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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
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>
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>
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)
&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)
&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> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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