Enum tokio_serial::ClearBuffer
pub enum ClearBuffer {
Input,
Output,
All,
}
Expand description
Specifies which buffer or buffers to purge when calling clear
.
Variants§
Input
Specify to clear data received but not read
Output
Specify to clear data written but not yet transmitted
All
Specify to clear both data received and data not yet transmitted
Trait Implementations§
§impl Clone for ClearBuffer
impl Clone for ClearBuffer
§fn clone(&self) -> ClearBuffer
fn clone(&self) -> ClearBuffer
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 more