pub enum ResetRequest {
Assert {
responder: ResetAssertResponder,
},
Deassert {
responder: ResetDeassertResponder,
},
Toggle {
responder: ResetToggleResponder,
},
ToggleWithTimeout {
timeout: i64,
responder: ResetToggleWithTimeoutResponder,
},
Status {
responder: ResetStatusResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: ResetControlHandle,
method_type: MethodType,
},
}Variants§
Assert
Asserts the reset pin and leaves it asserted until Deassert is called.
Fields
§
responder: ResetAssertResponderDeassert
Deasserts the reset pin.
Fields
§
responder: ResetDeassertResponderToggle
These methods assert the pin, wait a predetermined amount of time, and then deassert the
pin. The difference between Toggle and ToggleWithTimeout is that Toggle defers to the
Reset driver to choose the timeout duration and ToggleWithTimeout allows the client to
specify the timeout.
Fields
§
responder: ResetToggleResponderToggleWithTimeout
Status
Fields
§
responder: ResetStatusResponder#[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: ResetControlHandle§
method_type: MethodTypeImplementations§
Source§impl ResetRequest
impl ResetRequest
pub fn into_assert(self) -> Option<ResetAssertResponder>
pub fn into_deassert(self) -> Option<ResetDeassertResponder>
pub fn into_toggle(self) -> Option<ResetToggleResponder>
pub fn into_toggle_with_timeout( self, ) -> Option<(i64, ResetToggleWithTimeoutResponder)>
pub fn into_status(self) -> Option<ResetStatusResponder>
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 ResetRequest
impl !UnwindSafe for ResetRequest
impl Freeze for ResetRequest
impl Send for ResetRequest
impl Sync for ResetRequest
impl Unpin for ResetRequest
impl UnsafeUnpin for ResetRequest
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