#[non_exhaustive]pub enum Call {
BaudRate(u32),
DataBits(DataBits),
FlowControl(FlowControl),
Parity(Parity),
StopBits(StopBits),
Rts(bool),
Dtr(bool),
Break(bool),
ClearInput,
ClearOutput,
}Expand description
A setting or control call the host made on the port, in order (FakeDevice::calls).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BaudRate(u32)
set_baud_rate
DataBits(DataBits)
set_data_bits
FlowControl(FlowControl)
set_flow_control
Parity(Parity)
set_parity
StopBits(StopBits)
set_stop_bits
Rts(bool)
write_request_to_send
Dtr(bool)
write_data_terminal_ready
Break(bool)
set_break / clear_break
ClearInput
clear of the input (also as part of All)
ClearOutput
clear of the output (also as part of All)
Trait Implementations§
impl Eq for Call
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Forget for Call
impl Freeze for Call
impl Move for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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