pub struct Cursor {
pub user: String,
pub sel: Selection,
}Expand description
An event that occurred about a user’s cursor.
Fields§
§user: StringUser who sent the cursor.
sel: SelectionThe updated cursor selection.
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<'de> Deserialize<'de> for Cursor
impl<'de> Deserialize<'de> for Cursor
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
impl Controller<Selection, Cursor> for CursorController
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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