pub enum PortStep {
Write(Vec<u8>),
Read(Vec<u8>),
}Expand description
One step of a SerialPort::scripted port.
Variants§
Write(Vec<u8>)
Bytes the program is expected to write, in one call.
Read(Vec<u8>)
Bytes the far end sends, readable once every step before this one has happened.
Implementations§
Trait Implementations§
impl Eq for PortStep
impl StructuralPartialEq for PortStep
Auto Trait Implementations§
impl Freeze for PortStep
impl RefUnwindSafe for PortStep
impl Send for PortStep
impl Sync for PortStep
impl Unpin for PortStep
impl UnsafeUnpin for PortStep
impl UnwindSafe for PortStep
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