Trait xcb::Cookie

source ·
pub trait Cookie {
    // Required methods
    unsafe fn from_sequence(seq: u64) -> Self;
    fn sequence(&self) -> u64;
}
Expand description

General trait for cookies returned by requests.

Required Methods§

source

unsafe fn from_sequence(seq: u64) -> Self

§Safety

seq must be a valid cookie for a given Request or Reply.

source

fn sequence(&self) -> u64

The raw sequence number associated with the cookie.

Object Safety§

This trait is not object safe.

Implementors§