pub enum SourceChoice {
One {
source: Source,
machine: Option<Box<MachineEntry>>,
},
Choose(Vec<MachineEntry>),
}Expand description
A path given to restore --from: one source, or a folder remote whose
machines the user picks from.
Variants§
Trait Implementations§
Source§impl Clone for SourceChoice
impl Clone for SourceChoice
Source§impl Debug for SourceChoice
impl Debug for SourceChoice
impl Eq for SourceChoice
Source§impl PartialEq for SourceChoice
impl PartialEq for SourceChoice
impl StructuralPartialEq for SourceChoice
Auto Trait Implementations§
impl Forget for SourceChoice
impl Freeze for SourceChoicewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const MachineEntry is !null: Freeze,
PhantomData<MachineEntry>: Freeze,
impl Move for SourceChoice
impl RefUnwindSafe for SourceChoice
impl Send for SourceChoice
impl Sync for SourceChoice
impl Unpin for SourceChoice
impl UnsafeUnpin for SourceChoicewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const MachineEntry is !null: UnsafeUnpin,
PhantomData<MachineEntry>: UnsafeUnpin,
impl UnwindSafe for SourceChoicewhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BoxRaw<MachineEntry>: UnwindSafe,
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.