Struct wayland_client::ProtocolError [−][src]
pub struct ProtocolError {
pub code: u32,
pub object_id: u32,
pub object_interface: &'static str,
pub message: String,
}Expand description
A protocol error
This kind of error is generated by the server if your client didn’t respect the protocol, after which the server will kill your connection.
If the dispatching methods of EventQueues start to fail, you may want to
check Display::protocol_error() to see if a protocol error was generated.
Fields
code: u32The error code associated with the error
It should be interpreted as an instance of the Error enum of the
associated interface.
object_id: u32The id of the object that caused the error
object_interface: &'static strThe interface of the object that caused the error
message: StringThe message sent by the server describing the error
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
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