pub struct WaylandEncoder { /* private fields */ }Expand description
Low-level Wayland wire protocol message encoder.
Implementations§
Source§impl WaylandEncoder
impl WaylandEncoder
Sourcepub fn begin_message(&mut self)
pub fn begin_message(&mut self)
Reserves space for the 8-byte Wayland header.
Sourcepub fn finish_message(&mut self, object_id: u32, opcode: u16)
pub fn finish_message(&mut self, object_id: u32, opcode: u16)
Finalizes the header with the target object ID and opcode.
Sourcepub fn push_fixed(&mut self, val: f64)
pub fn push_fixed(&mut self, val: f64)
Appends a 24.8 signed fixed-point value.
Sourcepub fn push_string(&mut self, s: &str)
pub fn push_string(&mut self, s: &str)
Appends a length-prefixed, null-terminated, 4-byte aligned string.
Trait Implementations§
Source§impl Debug for WaylandEncoder
impl Debug for WaylandEncoder
Auto Trait Implementations§
impl Forget for WaylandEncoder
impl Freeze for WaylandEncoder
impl Move for WaylandEncoder
impl RefUnwindSafe for WaylandEncoder
impl Send for WaylandEncoder
impl Sync for WaylandEncoder
impl Unpin for WaylandEncoder
impl UnsafeUnpin for WaylandEncoder
impl UnwindSafe for WaylandEncoder
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