Enum sam4l::usbc::data::Mode
[−]
[src]
pub enum Mode { Host, Device { speed: Speed, config: Option<EndpointConfig>, state: DeviceState, }, }
Variants
Host
Device
Fields of Device
speed: Speed | |
config: Option<EndpointConfig> | |
state: DeviceState |
Methods
impl Mode
[src]
pub fn device_at_speed(speed: Speed) -> Mode
[src]
Trait Implementations
impl Copy for Mode
[src]
impl Clone for Mode
[src]
fn clone(&self) -> Mode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Mode
[src]
fn eq(&self, __arg_0: &Mode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Mode) -> bool
[src]
This method tests for !=
.
impl Debug for Mode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more