Enum serial_thread::SerialMessage
source · pub enum SerialMessage {
Show 23 variants
ListPorts,
AvailablePorts(Vec<String>),
SetPort(String),
SetBauds(BaudRate),
SetCharSize(CharSize),
SetParity(Parity),
SetStopBits(StopBits),
SetFlowControl(FlowControl),
SetTimeout(Duration),
Connect,
Disconnect,
Send(Vec<u8>),
DataSent(Vec<u8>),
Receive(Vec<u8>),
GetStatus,
Status(Status),
GetConnectionStatus,
Connected(bool),
SetMode(Mode),
Mode(Mode),
Error(SerialInterfaceError),
Ping,
Pong,
}
Variants§
ListPorts
AvailablePorts(Vec<String>)
SetPort(String)
SetBauds(BaudRate)
SetCharSize(CharSize)
SetParity(Parity)
SetStopBits(StopBits)
SetFlowControl(FlowControl)
SetTimeout(Duration)
Connect
Disconnect
Send(Vec<u8>)
DataSent(Vec<u8>)
Receive(Vec<u8>)
GetStatus
Status(Status)
GetConnectionStatus
Connected(bool)
SetMode(Mode)
Mode(Mode)
Error(SerialInterfaceError)
Ping
Pong
Trait Implementations§
source§impl Clone for SerialMessage
impl Clone for SerialMessage
source§fn clone(&self) -> SerialMessage
fn clone(&self) -> SerialMessage
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 moreAuto Trait Implementations§
impl Freeze for SerialMessage
impl RefUnwindSafe for SerialMessage
impl Send for SerialMessage
impl Sync for SerialMessage
impl Unpin for SerialMessage
impl UnwindSafe for SerialMessage
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