pub enum Command {
Status,
Read(u64),
Chunk(u64, u64, usize),
Begin(u64, usize),
Append(u64, u64, usize, Vec<u8>),
Commit(u64, u64),
Cancel(u64, u64),
Clear(u64),
}Expand description
Parsed, bounded native text clipboard control operation.
Variants§
Status
Metadata only, never selection text.
Read(u64)
Snapshot the current selection generation and byte length.
Chunk(u64, u64, usize)
Read one bounded chunk: window scope, generation, offset.
Begin(u64, usize)
Reserve one atomic write: window scope, total byte length.
Append(u64, u64, usize, Vec<u8>)
Append a chunk: window scope, transaction, offset, bytes.
Commit(u64, u64)
Publish a complete valid UTF-8 write: window scope, transaction.
Cancel(u64, u64)
Cancel an unfinished write: window scope, transaction.
Clear(u64)
Clear the committed selection for a window scope or operator.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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