pub struct SerialIfaceConfig {
pub name: String,
pub port: String,
pub speed: u32,
pub data_bits: u8,
pub parity: Parity,
pub stop_bits: u8,
pub interface_id: InterfaceId,
}Expand description
Configuration for a Serial interface.
Fields§
§name: String§port: String§speed: u32§data_bits: u8§parity: Parity§stop_bits: u8§interface_id: InterfaceIdTrait Implementations§
Source§impl Clone for SerialIfaceConfig
impl Clone for SerialIfaceConfig
Source§fn clone(&self) -> SerialIfaceConfig
fn clone(&self) -> SerialIfaceConfig
Returns a duplicate 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 SerialIfaceConfig
impl Debug for SerialIfaceConfig
Auto Trait Implementations§
impl Freeze for SerialIfaceConfig
impl RefUnwindSafe for SerialIfaceConfig
impl Send for SerialIfaceConfig
impl Sync for SerialIfaceConfig
impl Unpin for SerialIfaceConfig
impl UnsafeUnpin for SerialIfaceConfig
impl UnwindSafe for SerialIfaceConfig
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§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more