Enum wayland_client::RequestResult
[−]
[src]
pub enum RequestResult<T> { Sent(T), Destroyed, }
Possible outcome of the call of a request on a proxy
Variants
Sent(T)
Message has been buffered and will be sent to server
Destroyed
This proxy is already destroyed, request has been ignored
Methods
impl<T> RequestResult<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
.