Struct wayland_client::ConnectionHandle
source · [−]pub struct ConnectionHandle<'a> { /* private fields */ }
Expand description
Implementations
sourceimpl<'a> ConnectionHandle<'a>
impl<'a> ConnectionHandle<'a>
sourcepub fn backend_handle(&mut self) -> &mut Handle
pub fn backend_handle(&mut self) -> &mut Handle
Returns the underlying Handle
from wayland-backend
.
sourcepub fn send_request<I: Proxy>(
&mut self,
proxy: &I,
request: I::Request,
data: Option<Arc<dyn ObjectData>>
) -> Result<ObjectId, InvalidId>
pub fn send_request<I: Proxy>(
&mut self,
proxy: &I,
request: I::Request,
data: Option<Arc<dyn ObjectData>>
) -> Result<ObjectId, InvalidId>
Send a request associated with the provided object
This is a low-level interface for sending requests, you will likely instead use the methods of the types representing each interface.
sourcepub fn placeholder_id(
&mut self,
spec: Option<(&'static Interface, u32)>
) -> ObjectId
pub fn placeholder_id(
&mut self,
spec: Option<(&'static Interface, u32)>
) -> ObjectId
Create a placeholder id for request serialization
This is a low-level interface for sending requests, you don’t need to use it if you are using the methods of the types representing each interface.
sourcepub fn null_id(&mut self) -> ObjectId
pub fn null_id(&mut self) -> ObjectId
Create a null id for request serialization
This is a low-level interface for sending requests, you don’t need to use it if you are using the methods of the types representing each interface.
sourcepub fn get_object_data(
&mut self,
id: ObjectId
) -> Result<Arc<dyn ObjectData>, InvalidId>
pub fn get_object_data(
&mut self,
id: ObjectId
) -> Result<Arc<dyn ObjectData>, InvalidId>
Get the object data for a given object ID
This is a low-level interface, a higher-level interface for manipulating object data
is given as Proxy::data()
.
sourcepub fn object_info(&mut self, id: ObjectId) -> Result<ObjectInfo, InvalidId>
pub fn object_info(&mut self, id: ObjectId) -> Result<ObjectInfo, InvalidId>
Get the protocol information related to given object ID
Trait Implementations
sourceimpl<'a> Debug for ConnectionHandle<'a>
impl<'a> Debug for ConnectionHandle<'a>
sourceimpl<'a> From<&'a mut Handle> for ConnectionHandle<'a>
impl<'a> From<&'a mut Handle> for ConnectionHandle<'a>
sourcefn from(handle: &'a mut Handle) -> Self
fn from(handle: &'a mut Handle) -> Self
Creates a ConnectionHandle
using a &mut Handle
from wayland-backend
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ConnectionHandle<'a>
impl<'a> !Send for ConnectionHandle<'a>
impl<'a> Sync for ConnectionHandle<'a>
impl<'a> Unpin for ConnectionHandle<'a>
impl<'a> !UnwindSafe for ConnectionHandle<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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