pub struct UpdateCursor {
    pub icon: i32,
    pub image: Bytes,
    pub hotspot_x: u32,
    pub hotspot_y: u32,
}Expand description
§066 - Update Cursor
This message, which must be sent by the server on the same stream as the
original 030 - Attach message, indicates that the cursor image has changed
and the client should use the new one when the cursor is over the window.
Fields§
§icon: i32Required.
image: BytesThe cursor image, encoded as a PNG file. If set, the client should use this and use the icon field solely as a fallback.
hotspot_x: u32Relates to the image, if set.
hotspot_y: u32Implementations§
Source§impl UpdateCursor
 
impl UpdateCursor
Sourcepub fn icon(&self) -> CursorIcon
 
pub fn icon(&self) -> CursorIcon
Returns the enum value of icon, or the default if the field is set to an invalid enum value.
Sourcepub fn set_icon(&mut self, value: CursorIcon)
 
pub fn set_icon(&mut self, value: CursorIcon)
Sets icon to the provided enum value.
Trait Implementations§
Source§impl Clone for UpdateCursor
 
impl Clone for UpdateCursor
Source§fn clone(&self) -> UpdateCursor
 
fn clone(&self) -> UpdateCursor
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 UpdateCursor
 
impl Debug for UpdateCursor
Source§impl Default for UpdateCursor
 
impl Default for UpdateCursor
Source§impl From<UpdateCursor> for MessageType
 
impl From<UpdateCursor> for MessageType
Source§fn from(v: UpdateCursor) -> Self
 
fn from(v: UpdateCursor) -> Self
Converts to this type from the input type.
Source§impl Message for UpdateCursor
 
impl Message for UpdateCursor
Source§fn encoded_len(&self) -> usize
 
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,
 
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,
 
fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
 
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
 
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
 
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
Decodes an instance of the message from a buffer, and merges it into 
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
 
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into 
self.Source§impl PartialEq for UpdateCursor
 
impl PartialEq for UpdateCursor
impl StructuralPartialEq for UpdateCursor
Auto Trait Implementations§
impl !Freeze for UpdateCursor
impl RefUnwindSafe for UpdateCursor
impl Send for UpdateCursor
impl Sync for UpdateCursor
impl Unpin for UpdateCursor
impl UnwindSafe for UpdateCursor
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