pub struct WaylandDecoder<'a> { /* private fields */ }Expand description
Low-level Wayland wire protocol message decoder.
Implementations§
Source§impl<'a> WaylandDecoder<'a>
impl<'a> WaylandDecoder<'a>
Sourcepub fn new(data: &'a [u8]) -> Self
pub fn new(data: &'a [u8]) -> Self
Creates a decoder for the specified message payload (after the 8-byte header).
Sourcepub fn read_fixed(&mut self) -> Option<f64>
pub fn read_fixed(&mut self) -> Option<f64>
Reads a 24.8 signed fixed-point number as f64.
Sourcepub fn read_string(&mut self) -> Option<String>
pub fn read_string(&mut self) -> Option<String>
Reads a length-prefixed, 4-byte aligned string.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for WaylandDecoder<'a>
impl<'a> Freeze for WaylandDecoder<'a>
impl<'a> Move for WaylandDecoder<'a>
impl<'a> RefUnwindSafe for WaylandDecoder<'a>
impl<'a> Send for WaylandDecoder<'a>
impl<'a> Sync for WaylandDecoder<'a>
impl<'a> Unpin for WaylandDecoder<'a>
impl<'a> UnsafeUnpin for WaylandDecoder<'a>
impl<'a> UnwindSafe for WaylandDecoder<'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