pub enum CcdState {
Locked,
Unlocked,
Open,
// some variants omitted
}
Expand description
State of case-closed debugging features on this device.
Variants§
Locked
Locked. CCD configuration is read-only. ALWAYS capabilities are available.
Unlocked
Unlocked:
- Requires a short physical presence check.
- CCD password can be changed (unless it was set with CCD open).
- Limited access to CCD configuration (can toggle capabilities between ALWAYS and UNLESS_LOCKED, but cannot set flags or change OPEN capabilities).
Open
Opened. Full access to all CCD capabilities and configuration. Requires a long physical presence check.
Implementations§
Source§impl CcdState
impl CcdState
pub fn from_primitive(prim: u8) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u8) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<CcdState, D> for CcdState
impl<D: ResourceDialect> Decode<CcdState, D> for CcdState
Source§impl Ord for CcdState
impl Ord for CcdState
Source§impl PartialOrd for CcdState
impl PartialOrd for CcdState
Source§impl TypeMarker for CcdState
impl TypeMarker for CcdState
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 CcdState
impl ValueTypeMarker for CcdState
impl Copy for CcdState
impl Eq for CcdState
impl StructuralPartialEq for CcdState
Auto Trait Implementations§
impl Freeze for CcdState
impl RefUnwindSafe for CcdState
impl Send for CcdState
impl Sync for CcdState
impl Unpin for CcdState
impl UnwindSafe for CcdState
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
)