pub struct Messages<'a> { /* private fields */ }Expand description
A Wayland protocol message
Implementations§
Source§impl Messages<'_>
impl Messages<'_>
pub fn has_next(&mut self) -> Result<bool, Error>
pub fn next_fd(&mut self) -> OwnedFd
pub fn sender_id(&self) -> ObjectId
pub fn op(&self) -> u16
pub fn next_i32(&mut self) -> i32
pub fn next_u32(&mut self) -> u32
pub fn next_fixed(&mut self) -> WlFixed
pub fn next_string<'a>(&mut self) -> Result<&'a str, Error>
pub fn next_object(&mut self) -> Option<ObjectId>
pub fn next_new_specified_id(&mut self) -> Result<ObjectId, Error>
pub fn next_new_unspecified_id<'a>(&mut self) -> Result<NewId<'a>, Error>
pub fn next_array<'a>(&mut self) -> &'a [u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Messages<'a>
impl<'a> RefUnwindSafe for Messages<'a>
impl<'a> Send for Messages<'a>
impl<'a> Sync for Messages<'a>
impl<'a> Unpin for Messages<'a>
impl<'a> !UnwindSafe for Messages<'a>
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