pub struct OwnedDisplayHandle { /* private fields */ }
Expand description
A proxy for the underlying display handle.
The purpose of this type is to provide a cheaply clonable handle to the underlying
display handle. This is often used by graphics APIs to connect to the underlying APIs.
It is difficult to keep a handle to the EventLoop
type or the ActiveEventLoop
type. In contrast, this type involves no lifetimes and can be persisted for as long as
needed.
For all platforms, this is one of the following:
- A zero-sized type that is likely optimized out.
- A reference-counted pointer to the underlying type.
Trait Implementations§
Source§impl Clone for OwnedDisplayHandle
impl Clone for OwnedDisplayHandle
Source§fn clone(&self) -> OwnedDisplayHandle
fn clone(&self) -> OwnedDisplayHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OwnedDisplayHandle
impl Debug for OwnedDisplayHandle
Source§impl HasDisplayHandle for OwnedDisplayHandle
impl HasDisplayHandle for OwnedDisplayHandle
Source§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Get a handle to the display controller of the windowing system.
Auto Trait Implementations§
impl Freeze for OwnedDisplayHandle
impl RefUnwindSafe for OwnedDisplayHandle
impl Send for OwnedDisplayHandle
impl Sync for OwnedDisplayHandle
impl Unpin for OwnedDisplayHandle
impl UnwindSafe for OwnedDisplayHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HasRawDisplayHandle for Twhere
T: HasDisplayHandle + ?Sized,
impl<T> HasRawDisplayHandle for Twhere
T: HasDisplayHandle + ?Sized,
Source§fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>
fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>
👎Deprecated: Use
HasDisplayHandle
instead