pub struct Client { /* private fields */ }Expand description
Synchronous native clipboard client; GUI clients should use Worker.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(socket: &Path, scope: u64) -> Self
pub fn new(socket: &Path, scope: u64) -> Self
Start one operation with an absolute deadline on a selected compositor.
Sourcepub fn read(&self) -> Result<String>
pub fn read(&self) -> Result<String>
Retrieve one complete generation; changes during transfer reject the read.
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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