pub enum Hook {
CdPre {
pwd: OsString,
prev: OsString,
args: Vec<OsString>,
},
CdPost {
old: OsString,
new: OsString,
args: Vec<OsString>,
},
LegacyCdPre {
target: Option<OsString>,
pwd: Option<OsString>,
},
LegacyCdPost {
pwd: Option<OsString>,
},
Fd,
}Expand description
A command that the game shell’s functions send, parsed by hand.
Variants§
CdPre
cd-hook pre <pwd> <prev> -- <cd args...>: may the player cd?
Fields
CdPost
cd-hook post <old pwd> <new pwd> -- <cd args...>: the move happened.
Fields
LegacyCdPre
Legacy cd-hook [TARGET] [PWD] of a shell started by the Python version.
Fields
LegacyCdPost
Legacy cd-hook --post-move [PWD].
Fd
fd-hook: where do this process’s stdout and stderr point?
Trait Implementations§
impl Eq for Hook
impl StructuralPartialEq for Hook
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnsafeUnpin for Hook
impl UnwindSafe for Hook
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§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.