pub enum Wiring {
CommandHooks {
events: &'static [(&'static str, &'static str)],
timeouts: &'static [(&'static str, u64)],
retired: &'static [(&'static str, &'static str)],
through_links: bool,
},
AdapterFile {
source: &'static str,
},
}Expand description
How borg install wires a harness.
Variants§
CommandHooks
Command hooks merged into a JSON file: one hook group per native event (native name, canonical
event), each running <borg> hook <name> <event>; timeouts gives a canonical event’s hook a
timeout in seconds (the others get the harness’s own default). retired: the hooks an older
borg installed and this one does not, which install and uninstall remove. through_links: the
file is often a symlink into a dotfiles repo, written through.
Fields
AdapterFile
A compiled-in adapter copied whole; a symlink is replaced, never written through, and uninstall removes only a file with exactly this content.
Implementations§
Trait Implementations§
impl Copy for Wiring
impl Eq for Wiring
impl StructuralPartialEq for Wiring
Auto Trait Implementations§
impl Freeze for Wiring
impl RefUnwindSafe for Wiring
impl Send for Wiring
impl Sync for Wiring
impl Unpin for Wiring
impl UnsafeUnpin for Wiring
impl UnwindSafe for Wiring
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.