Enum wayland_server::EventResult
[−]
[src]
pub enum EventResult<T> { Sent(T), Destroyed, }
Possible outcome of the call of a event on a resource
Variants
Sent(T)
Message has been buffered and will be sent to client
Destroyed
This resource is already destroyed, request has been ignored
Methods
impl<T> EventResult<T>
[src]
fn expect(self, error: &str) -> T
[src]
Assert that result is successfull and extract the value.
Panics with provided error message if the result was Destroyed
.