pub struct CapturedFeature {
pub code: u16,
pub name: &'static str,
pub data: Vec<u8>,
}Expand description
A single GET CONFIGURATION feature response from the drive.
Fields§
§code: u16MMC-6 GET CONFIGURATION feature code (e.g. 0x010D = AACS).
name: &'static strStatic human-readable label from the internal FEATURES table —
not a device-reported string.
data: Vec<u8>Raw feature-descriptor payload bytes, with the 8-byte GET
CONFIGURATION header stripped (i.e. buf[8..]). Unlike
DriveCapture::gc_010c, which retains the full header.
Trait Implementations§
Source§impl Clone for CapturedFeature
impl Clone for CapturedFeature
Source§fn clone(&self) -> CapturedFeature
fn clone(&self) -> CapturedFeature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapturedFeature
impl RefUnwindSafe for CapturedFeature
impl Send for CapturedFeature
impl Sync for CapturedFeature
impl Unpin for CapturedFeature
impl UnsafeUnpin for CapturedFeature
impl UnwindSafe for CapturedFeature
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more