pub struct InstalledFirmware { /* private fields */ }Expand description
The drive’s installed firmware, bound to its live identity.
Implementations§
Source§impl InstalledFirmware
impl InstalledFirmware
Sourcepub fn new(identity: Identity, image: &[u8]) -> Result<Self, PrepareError>
pub fn new(identity: Identity, image: &[u8]) -> Result<Self, PrepareError>
Bind image, a complete read of the drive’s firmware or the image
rebuilt from one, to the drive’s live identity.
Fails with PrepareError::InstalledMismatch unless the image is
layout::IMAGE_SIZE bytes and holds the identity descriptor (when
the identity has one) and the boot banner (when the identity read one)
the drive reports; at least one of them must be present.
Trait Implementations§
Source§impl Clone for InstalledFirmware
impl Clone for InstalledFirmware
Auto Trait Implementations§
impl Freeze for InstalledFirmware
impl RefUnwindSafe for InstalledFirmware
impl Send for InstalledFirmware
impl Sync for InstalledFirmware
impl Unpin for InstalledFirmware
impl UnsafeUnpin for InstalledFirmware
impl UnwindSafe for InstalledFirmware
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