pub enum Effect {
Call {
id: u64,
generation: u64,
call: ApiCall,
},
WriteFile {
path: String,
contents: String,
},
SaveLanguage(Lang),
WriteSecret {
path: String,
contents: String,
},
Copy(String),
SaveProfiles {
file: ConfigFile,
select: Option<String>,
},
CheckProfile(Profile),
Connect(String),
Quit,
}Variants§
Call
Make an API call on a worker; the reply returns with this id and generation.
WriteFile
Write a file the person chose a path for (never without asking).
SaveLanguage(Lang)
Keep the language in ui.language of the configuration file.
WriteSecret
Write a file that holds a secret, readable only by its owner, never over an existing one.
Copy(String)
Ask the terminal to put this text on the clipboard (OSC 52).
SaveProfiles
Write the default profile and the profiles to the configuration file.
CheckProfile(Profile)
Try the connection of a profile that may not be saved.
Connect(String)
Connect with a profile of the file: from now on the calls go there.
Quit
Trait Implementations§
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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