Enum adana_cache_command::CacheCommand

source ·
pub enum CacheCommand<'a> {
Show 23 variants Put { aliases: Vec<&'a str>, value: &'a str, }, Describe(Option<&'a str>), ListCache, CurrentCache, Backup, Flush, Restore, DeleteCache(Option<&'a str>), Merge(&'a str), Alias((&'a str, &'a str)), Del(&'a str), Get(&'a str), Clip(&'a str), Exec { key: &'a str, args: Option<&'a str>, }, Cd(ChangeDirectoryType<'a>), Using(&'a str), Dump(Option<&'a str>), Clear, PrintScriptContext, StoreScriptContext(Option<&'a str>), LoadScriptContext(Option<&'a str>), PrintAst(&'a str), Help,
}

Variants§

§

Put

Fields

§aliases: Vec<&'a str>
§value: &'a str
§

Describe(Option<&'a str>)

§

ListCache

§

CurrentCache

§

Backup

§

Flush

§

Restore

§

DeleteCache(Option<&'a str>)

§

Merge(&'a str)

§

Alias((&'a str, &'a str))

§

Del(&'a str)

§

Get(&'a str)

§

Clip(&'a str)

§

Exec

Fields

§key: &'a str
§args: Option<&'a str>
§

Cd(ChangeDirectoryType<'a>)

§

Using(&'a str)

§

Dump(Option<&'a str>)

§

Clear

§

PrintScriptContext

§

StoreScriptContext(Option<&'a str>)

§

LoadScriptContext(Option<&'a str>)

§

PrintAst(&'a str)

§

Help

Implementations§

source§

impl CacheCommand<'_>

source

pub const fn doc() -> &'static [(&'static [&'static str], &'static str)]

Trait Implementations§

source§

impl<'a> Debug for CacheCommand<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> EnumCount for CacheCommand<'a>

source§

const COUNT: usize = 23usize

Auto Trait Implementations§

§

impl<'a> Freeze for CacheCommand<'a>

§

impl<'a> RefUnwindSafe for CacheCommand<'a>

§

impl<'a> Send for CacheCommand<'a>

§

impl<'a> Sync for CacheCommand<'a>

§

impl<'a> Unpin for CacheCommand<'a>

§

impl<'a> UnwindSafe for CacheCommand<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.