pub struct Cmd {Show 14 fields
pub ids: Vec<Id>,
pub jobs: Vec<usize>,
pub links: Vec<usize>,
pub media: Vec<usize>,
pub urls: Vec<String>,
pub files: Vec<String>,
pub reserved: Vec<&'static str>,
pub words: Vec<String>,
pub mods: Vec<(String, String)>,
pub sub: Vec<String>,
pub verb: Option<String>,
pub idle: bool,
pub ask: Option<String>,
pub raw: String,
}Fields§
§ids: Vec<Id>§jobs: Vec<usize>Bare job ids (j3): the job’s command and pages.
links: Vec<usize>§media: Vec<usize>Media rows of the page (u3 m1): the picture itself, fetched on demand (cli::asset).
urls: Vec<String>§files: Vec<String>§reserved: Vec<&'static str>§words: Vec<String>§mods: Vec<(String, String)>§sub: Vec<String>A settings change’s words (setup free off, config set batch_parallel 8): never a search (stats::change).
verb: Option<String>The verb as typed (search), first among the non-mod tokens: printed first again, so a replay reads the
same (search login stays a search).
idle: boolNothing to act on, mods and json aside, or a ? (fats, fats search, fats -v): the status, and no
arrow leads to it. A lone site: is a search, never idle.
ask: Option<String>A usage problem: the ? line to print (exit 2).
raw: StringImplementations§
Source§impl Cmd
impl Cmd
pub fn has(&self, r: &str) -> bool
pub fn get(&self, k: &str) -> Option<&str>
pub fn flag(&self, k: &str) -> bool
Sourcepub fn fresh(&self) -> bool
pub fn fresh(&self) -> bool
Past the cache: fresh:true, or js:true (a render: what ! js_shell and ! thin ask for).
Sourcepub fn count(&self, k: &str) -> Option<usize>
pub fn count(&self, k: &str) -> Option<usize>
A count mod (limit:20, max:1k); validated by the parser, so None = absent.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Cmd
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnsafeUnpin for Cmd
impl UnwindSafe for Cmd
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.