pub struct CursorController(/* private fields */);Expand description
A Controller for asynchronously sending and receiving Cursor event.
An unique CursorController exists for each active crate::Workspace.
Implementations§
Source§impl CursorController
impl CursorController
pub fn workspace_id(&self) -> &str
Trait Implementations§
Source§impl AsyncReceiver<Cursor> for CursorController
impl AsyncReceiver<Cursor> for CursorController
Source§async fn try_recv(&self) -> ControllerResult<Option<Cursor>>
async fn try_recv(&self) -> ControllerResult<Option<Cursor>>
Attempt to receive a value, return None if nothing is currently available.
Source§async fn poll(&self) -> ControllerResult<()>
async fn poll(&self) -> ControllerResult<()>
Block until a value is available, without consuming it.
Source§fn callback(&self, cb: impl Into<ControllerCallback<CursorController>>)
fn callback(&self, cb: impl Into<ControllerCallback<CursorController>>)
Register a callback to be called on receive. Read more
Source§fn clear_callback(&self)
fn clear_callback(&self)
Clear the currently registered callback.
Source§async fn recv(&self) -> ControllerResult<T>
async fn recv(&self) -> ControllerResult<T>
Block until a value is available and returns it.
Source§impl AsyncSender<Selection> for CursorController
impl AsyncSender<Selection> for CursorController
Source§impl Clone for CursorController
impl Clone for CursorController
Source§fn clone(&self) -> CursorController
fn clone(&self) -> CursorController
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 CursorController
impl Debug for CursorController
impl Controller<Selection, Cursor> for CursorController
Auto Trait Implementations§
impl Freeze for CursorController
impl RefUnwindSafe for CursorController
impl Send for CursorController
impl Sync for CursorController
impl Unpin for CursorController
impl UnwindSafe for CursorController
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request