pub enum ClearBuffer {
Input,
Output,
All,
}
Expand description
Buffer types for clearing serial port buffers
Serial ports maintain input and output buffers to store data. This enum allows you to specify which buffers to clear.
§Example
use tauri_plugin_serialplugin::state::ClearBuffer;
let buffer_type = ClearBuffer::All; // Clear both input and output buffers
Variants§
Input
Input buffer (received data waiting to be read)
Output
Output buffer (transmitted data waiting to be sent)
All
Both input and output buffers
Trait Implementations§
Source§impl Clone for ClearBuffer
impl Clone for ClearBuffer
Source§fn clone(&self) -> ClearBuffer
fn clone(&self) -> ClearBuffer
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 ClearBuffer
impl Debug for ClearBuffer
Source§impl<'de> Deserialize<'de> for ClearBuffer
impl<'de> Deserialize<'de> for ClearBuffer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ClearBuffer> for ClearBuffer
impl From<ClearBuffer> for ClearBuffer
Source§fn from(buffer: ClearBuffer) -> Self
fn from(buffer: ClearBuffer) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClearBuffer
impl PartialEq for ClearBuffer
Source§impl Serialize for ClearBuffer
impl Serialize for ClearBuffer
impl Copy for ClearBuffer
impl Eq for ClearBuffer
impl StructuralPartialEq for ClearBuffer
Auto Trait Implementations§
impl Freeze for ClearBuffer
impl RefUnwindSafe for ClearBuffer
impl Send for ClearBuffer
impl Sync for ClearBuffer
impl Unpin for ClearBuffer
impl UnwindSafe for ClearBuffer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.