pub struct Firmware { /* private fields */ }Implementations§
Source§impl Firmware
impl Firmware
Sourcepub fn decrypt<R: Read + Seek + ?Sized>(reader: &mut R) -> Result<Firmware>
pub fn decrypt<R: Read + Seek + ?Sized>(reader: &mut R) -> Result<Firmware>
Decrypts the firmware from the provided reader.
§Examples
use std::io::Cursor;
use evic::firmware::Firmware;
let buffer = [0; 1024]; // Pretend this is a buffer holding encrypted firmware.
let firmware = Firmware::decrypt(&mut Cursor::new(buffer.as_ref())).unwrap();Trait Implementations§
Auto Trait Implementations§
impl Freeze for Firmware
impl RefUnwindSafe for Firmware
impl Send for Firmware
impl Sync for Firmware
impl Unpin for Firmware
impl UnwindSafe for Firmware
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