Struct wayland_client::protocol::wl_registry::WlRegistry
source · [−]pub struct WlRegistry { /* private fields */ }
Implementations
Trait Implementations
impl<D> DelegateDispatch<WlRegistry, D> for GlobalList where
D: Dispatch<WlRegistry, UserData = ()> + AsMut<GlobalList>,
impl<D> DelegateDispatch<WlRegistry, D> for GlobalList where
D: Dispatch<WlRegistry, UserData = ()> + AsMut<GlobalList>,
fn event(
handle: &mut D,
_: &WlRegistry,
event: Event,
_: &(),
_: &mut ConnectionHandle<'_>,
_: &QueueHandle<D>
)
fn event(
handle: &mut D,
_: &WlRegistry,
event: Event,
_: &(),
_: &mut ConnectionHandle<'_>,
_: &QueueHandle<D>
)
Called when an event from the server is processed. Read more
Method used to initialize the user-data of objects created by events Read more
fn event(
&mut self,
proxy: &WlRegistry,
event: Event,
data: &Self::UserData,
connhandle: &mut ConnectionHandle<'_>,
qhandle: &QueueHandle<Self>
)
fn event(
&mut self,
proxy: &WlRegistry,
event: Event,
data: &Self::UserData,
connhandle: &mut ConnectionHandle<'_>,
qhandle: &QueueHandle<Self>
)
Called when an event from the server is processed. Read more
Method used to initialize the user-data of objects created by events Read more
Access the user-data associated with this object
Create an object proxy from its ID Read more
fn parse_event(
conn: &mut ConnectionHandle<'_>,
msg: Message<ObjectId>
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event(
conn: &mut ConnectionHandle<'_>,
msg: Message<ObjectId>
) -> Result<(Self, Self::Event), DispatchError>
Parse a event for this object Read more
fn write_request(
&self,
conn: &mut ConnectionHandle<'_>,
msg: Self::Request
) -> Result<Message<ObjectId>, InvalidId>
fn write_request(
&self,
conn: &mut ConnectionHandle<'_>,
msg: Self::Request
) -> Result<Message<ObjectId>, InvalidId>
Serialize a request for this object Read more
Auto Trait Implementations
impl !RefUnwindSafe for WlRegistry
impl Send for WlRegistry
impl Sync for WlRegistry
impl Unpin for WlRegistry
impl !UnwindSafe for WlRegistry
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
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
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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