pub enum DebugRequest {
SetConnected {
connected: bool,
wake_lease: Option<EventPair>,
responder: DebugSetConnectedResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: DebugControlHandle,
method_type: MethodType,
},
}Expand description
Protocol for test and debug control of the USB Type-C port (e.g. cable-breaker).
Variants§
SetConnected
Connects or disconnects the physical Type-C CC lines and USB data switch.
When connected is false, disables autonomous DRP toggling and opens CC1/CC2
terminations to simulate a physical cable unplug. When connected is true,
restores autonomous DRP Rp/Rd toggling and restarts connection detection; if
wake_lease is provided, the driver holds it across CC attach debounce and
BC1.2 detection so the system does not re-suspend before USB re-enumerates.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DebugControlHandle§
method_type: MethodTypeImplementations§
Source§impl DebugRequest
impl DebugRequest
pub fn into_set_connected( self, ) -> Option<(bool, Option<EventPair>, DebugSetConnectedResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DebugRequest
impl !UnwindSafe for DebugRequest
impl Freeze for DebugRequest
impl Send for DebugRequest
impl Sync for DebugRequest
impl Unpin for DebugRequest
impl UnsafeUnpin for DebugRequest
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