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 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