pub enum KnownAction<'a> {
Apt(AptAction<'a>),
Brew(BrewAction<'a>),
Create(NativeCreateAction<'a>),
Exec(ExecAction<'a>),
Link(NativeLinkAction<'a>),
Subconfig(Context),
}
Variants§
Apt(AptAction<'a>)
Brew(BrewAction<'a>)
Create(NativeCreateAction<'a>)
Exec(ExecAction<'a>)
Link(NativeLinkAction<'a>)
Subconfig(Context)
Implementations§
source§impl<'a> KnownAction<'a>
impl<'a> KnownAction<'a>
pub fn execute(self) -> Result<(), DotfilesError>
Trait Implementations§
source§impl<'a> From<AptAction<'a>> for KnownAction<'a>
impl<'a> From<AptAction<'a>> for KnownAction<'a>
source§impl<'a> From<BrewAction<'a>> for KnownAction<'a>
impl<'a> From<BrewAction<'a>> for KnownAction<'a>
source§fn from(value: BrewAction<'a>) -> Self
fn from(value: BrewAction<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Context> for KnownAction<'a>
impl<'a> From<Context> for KnownAction<'a>
source§impl<'a> From<CreateAction<'a, OsFileSystem>> for KnownAction<'a>
impl<'a> From<CreateAction<'a, OsFileSystem>> for KnownAction<'a>
source§fn from(value: NativeCreateAction<'a>) -> Self
fn from(value: NativeCreateAction<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<ExecAction<'a>> for KnownAction<'a>
impl<'a> From<ExecAction<'a>> for KnownAction<'a>
source§fn from(value: ExecAction<'a>) -> Self
fn from(value: ExecAction<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<LinkAction<'a, OsFileSystem>> for KnownAction<'a>
impl<'a> From<LinkAction<'a, OsFileSystem>> for KnownAction<'a>
source§fn from(value: NativeLinkAction<'a>) -> Self
fn from(value: NativeLinkAction<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for KnownAction<'a>
impl<'a> RefUnwindSafe for KnownAction<'a>
impl<'a> Send for KnownAction<'a>
impl<'a> Sync for KnownAction<'a>
impl<'a> Unpin for KnownAction<'a>
impl<'a> UnwindSafe for KnownAction<'a>
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> 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