Struct wayland_server::DisplayHandle
source · [−]pub struct DisplayHandle { /* private fields */ }Expand description
Implementations
sourceimpl DisplayHandle
impl DisplayHandle
sourcepub fn backend_handle(&self) -> Handle
pub fn backend_handle(&self) -> Handle
Returns the underlying Handle from wayland-backend.
pub fn get_object_data(
&self,
id: ObjectId
) -> Result<Arc<dyn Any + Send + Sync + 'static>, InvalidId>
pub fn object_info(&self, id: ObjectId) -> Result<ObjectInfo, InvalidId>
pub fn insert_client(
&mut self,
stream: UnixStream,
data: Arc<dyn ClientData>
) -> Result<Client>
pub fn get_client(&self, id: ObjectId) -> Result<Client, InvalidId>
pub fn null_id(&self) -> ObjectId
pub fn send_event<I: Resource>(
&self,
resource: &I,
event: I::Event
) -> Result<(), InvalidId>
pub fn post_error<I: Resource>(&self, resource: &I, code: u32, error: String)
pub fn create_global<D, I: Resource + 'static, U: Send + Sync + 'static>(
&self,
version: u32,
data: U
) -> GlobalId where
D: GlobalDispatch<I, U> + 'static,
pub fn disable_global(&self, id: GlobalId)
pub fn remove_global(&self, id: GlobalId)
Trait Implementations
sourceimpl Clone for DisplayHandle
impl Clone for DisplayHandle
sourcefn clone(&self) -> DisplayHandle
fn clone(&self) -> DisplayHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DisplayHandle
impl Debug for DisplayHandle
sourceimpl From<Handle> for DisplayHandle
impl From<Handle> for DisplayHandle
sourcefn from(handle: Handle) -> Self
fn from(handle: Handle) -> Self
Creates a DisplayHandle using a Handle from wayland-backend.
Auto Trait Implementations
impl RefUnwindSafe for DisplayHandle
impl Send for DisplayHandle
impl Sync for DisplayHandle
impl Unpin for DisplayHandle
impl UnwindSafe for DisplayHandle
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
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more