pub enum DfuTarget {
Auto,
Ecid(u64),
Port(i32),
}Expand description
Which cabled target a DFU trigger / reboot should act on.
On hosts with a single DFU-capable port, Auto is all
that’s ever needed; the other variants disambiguate when several targets are
cabled to DFU-capable ports.
Variants§
Auto
The sole (or first) DFU-capable port — the historical behavior.
Ecid(u64)
The Mac with this ECID, resolved to the port it’s cabled to.
Port(i32)
A DFU-capable port named by its AppleHPM RID (see ports /
restorekit list).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DfuTarget
impl RefUnwindSafe for DfuTarget
impl Send for DfuTarget
impl Sync for DfuTarget
impl Unpin for DfuTarget
impl UnsafeUnpin for DfuTarget
impl UnwindSafe for DfuTarget
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