Enum wayland_server::EventResult [] [src]

pub enum EventResult<T> {
    Sent(T),
    Destroyed,
}

Possible outcome of the call of a event on a resource

Variants

Message has been buffered and will be sent to client

This resource is already destroyed, request has been ignored

Methods

impl<T> EventResult<T>
[src]

Assert that result is successfull and extract the value.

Panics with provided error message if the result was Destroyed.