Struct wayland_backend::protocol::ProtocolError [−][src]
pub struct ProtocolError {
pub code: u32,
pub object_id: u32,
pub object_interface: String,
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.
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: StringThe interface of the object that caused the error
message: StringThe message sent by the server describing the error
Trait Implementations
Performs the conversion.
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
