pub enum FastBootResponse {
Okay(String),
Info(String),
Text(String),
Fail(String),
Data(u32),
}
Expand description
Fastboot response
Variants§
Okay(String)
Command succeeded with value (depending on command)
Info(String)
Information from the device
Text(String)
Text data from the device
Fail(String)
Command failed with provided reason
Data(u32)
Device expected the amount of data to be sent
Implementations§
Source§impl<'a> FastBootResponse
impl<'a> FastBootResponse
Sourcepub fn from_bytes(bytes: &'a [u8]) -> Result<Self, FastBootResponseParseError>
pub fn from_bytes(bytes: &'a [u8]) -> Result<Self, FastBootResponseParseError>
Parse a fastboot response from provided data
Trait Implementations§
Source§impl Debug for FastBootResponse
impl Debug for FastBootResponse
Source§impl PartialEq for FastBootResponse
impl PartialEq for FastBootResponse
impl Eq for FastBootResponse
impl StructuralPartialEq for FastBootResponse
Auto Trait Implementations§
impl Freeze for FastBootResponse
impl RefUnwindSafe for FastBootResponse
impl Send for FastBootResponse
impl Sync for FastBootResponse
impl Unpin for FastBootResponse
impl UnwindSafe for FastBootResponse
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