Struct smithay::wayland::SerialCounter [−][src]
pub struct SerialCounter { /* fields omitted */ }
Expand description
A counter for generating serials, for use in the client protocol
A global instance of this counter is available as the SERIAL_COUNTER
static. It is recommended to only use this global counter to ensure the
uniqueness of serials.
The counter will wrap around on overflow, ensuring it can run for as long as needed.
Implementations
Retrieve the next serial from the counter
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SerialCounter
impl Send for SerialCounter
impl Sync for SerialCounter
impl Unpin for SerialCounter
impl UnwindSafe for SerialCounter
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V