Enum embassy_usb::RemoteWakeupError
source · pub enum RemoteWakeupError {
InvalidState,
Unsupported,
}
Expand description
Error returned by UsbDevice::remote_wakeup
.
Variants§
InvalidState
The USB device is not suspended, or remote wakeup was not enabled.
Unsupported
The underlying driver doesn’t support remote wakeup.
Trait Implementations§
source§impl Clone for RemoteWakeupError
impl Clone for RemoteWakeupError
source§fn clone(&self) -> RemoteWakeupError
fn clone(&self) -> RemoteWakeupError
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 RemoteWakeupError
impl Debug for RemoteWakeupError
source§impl Format for RemoteWakeupError
impl Format for RemoteWakeupError
source§impl From<Unsupported> for RemoteWakeupError
impl From<Unsupported> for RemoteWakeupError
source§fn from(_: Unsupported) -> Self
fn from(_: Unsupported) -> Self
Converts to this type from the input type.
source§impl PartialEq<RemoteWakeupError> for RemoteWakeupError
impl PartialEq<RemoteWakeupError> for RemoteWakeupError
source§fn eq(&self, other: &RemoteWakeupError) -> bool
fn eq(&self, other: &RemoteWakeupError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.