pub enum CcdCapability {
Show 20 variants
GscRxApTx,
GscTxApRx,
GscRxEcTx,
GscTxEcRx,
ApFlash,
EcFlash,
OverrideWp,
RebootEcAp,
GscFullConsole,
UnlockNoReboot,
UnlockNoShortPp,
OpenNoTpmWipe,
OpenNoLongPp,
BatteryBypassPp,
Unused,
I2C,
FlashRead,
OpenNoDevMode,
OpenFromUsb,
OverrideBatteryState,
// some variants omitted
}
Expand description
Case-closed debugging capabilities.
Variants§
GscRxApTx
UART from AP.
GscTxApRx
UART to AP.
GscRxEcTx
UART from EC.
GscTxEcRx
UART to EC.
ApFlash
Access to AP SPI flash.
EcFlash
Access to EC flash.
OverrideWp
Override WP (temporarily or at boot).
RebootEcAp
Reboot EC/AP.
GscFullConsole
Allow access to full console.
UnlockNoReboot
Unlock/open CCD without AP reboot.
UnlockNoShortPp
Unlock/open CCD without short physical presence check.
OpenNoTpmWipe
Open CCD without TPM wipe.
OpenNoLongPp
Open TPM without long physical presence check.
BatteryBypassPp
Allow disconnecting the battery to bypass the physical presence check.
Unused
Unused.
I2C
Access I2C via USB.
FlashRead
Read-only access to hash or dump EC/AP flash.
OpenNoDevMode
Open CCD without developer mode enabled.
OpenFromUsb
Open CCD from USB.
OverrideBatteryState
Override battery presence temporarily or at boot.
Implementations§
Source§impl CcdCapability
impl CcdCapability
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for CcdCapability
impl Clone for CcdCapability
Source§fn clone(&self) -> CcdCapability
fn clone(&self) -> CcdCapability
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CcdCapability
impl Debug for CcdCapability
Source§impl<D: ResourceDialect> Decode<CcdCapability, D> for CcdCapability
impl<D: ResourceDialect> Decode<CcdCapability, D> for CcdCapability
Source§impl<D: ResourceDialect> Encode<CcdCapability, D> for CcdCapability
impl<D: ResourceDialect> Encode<CcdCapability, D> for CcdCapability
Source§impl Hash for CcdCapability
impl Hash for CcdCapability
Source§impl Ord for CcdCapability
impl Ord for CcdCapability
Source§fn cmp(&self, other: &CcdCapability) -> Ordering
fn cmp(&self, other: &CcdCapability) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CcdCapability
impl PartialEq for CcdCapability
Source§impl PartialOrd for CcdCapability
impl PartialOrd for CcdCapability
Source§impl TypeMarker for CcdCapability
impl TypeMarker for CcdCapability
Source§type Owned = CcdCapability
type Owned = CcdCapability
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for CcdCapability
impl ValueTypeMarker for CcdCapability
Source§type Borrowed<'a> = CcdCapability
type Borrowed<'a> = CcdCapability
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for CcdCapability
impl Eq for CcdCapability
impl StructuralPartialEq for CcdCapability
Auto Trait Implementations§
impl Freeze for CcdCapability
impl RefUnwindSafe for CcdCapability
impl Send for CcdCapability
impl Sync for CcdCapability
impl Unpin for CcdCapability
impl UnwindSafe for CcdCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)