Trait xcb::Reply[][src]

pub trait Reply {
    unsafe fn from_raw(raw: *const u8) -> Self;
unsafe fn into_raw(self) -> *const u8; }
Expand description

Trait for request replies

Required methods

Build the reply struct from a raw pointer.

Safety

raw must be a pointer to a valid wire representation of Self, allocated with libc::malloc.

Consume the reply struct into a raw pointer.

Safety

The returned pointer must be freed with libc::free to avoid any memory leak, or be used to build another reply.

Implementors