pub struct Display { /* private fields */ }
Expand description
|Display| is the global object used to manage a wayland server.
The |Display| has a |Registry| that will hold the set of global interfaces that will be advertised to clients.
Implementations§
Source§impl Display
impl Display
pub fn new(registry: Registry) -> Result<Self, Error>
pub fn new_local( registry: Registry, client: Arc<Mutex<Box<dyn LocalViewProducerClient>>>, ) -> Result<Self, Error>
Sourcepub fn scenic(&self) -> &Arc<ScenicProxy>
pub fn scenic(&self) -> &Arc<ScenicProxy>
Provides access to the Scenic connection for this display.
Sourcepub fn graphical_presenter(&self) -> &Arc<GraphicalPresenterProxy>
pub fn graphical_presenter(&self) -> &Arc<GraphicalPresenterProxy>
Provides access to the GraphicalPresenter connection for this display.
Sourcepub fn registry(&self) -> Arc<Mutex<Registry>>
pub fn registry(&self) -> Arc<Mutex<Registry>>
Provides access to the global registry for this display.
Sourcepub fn take_view_provider_requests(&mut self) -> bool
pub fn take_view_provider_requests(&mut self) -> bool
Take one view provider request off the top. Returns false if no request exists.
Sourcepub fn new_view_provider(
&self,
view_provider: ClientEnd<ViewProviderMarker>,
view_id: u32,
)
pub fn new_view_provider( &self, view_provider: ClientEnd<ViewProviderMarker>, view_id: u32, )
Publish a new view back to the client for presentation.
Sourcepub fn delete_view_provider(&self, view_id: u32)
pub fn delete_view_provider(&self, view_id: u32)
Notify client that presentation of view should stop.
Sourcepub fn spawn_new_client(self, chan: Channel, protocol_logging: bool)
pub fn spawn_new_client(self, chan: Channel, protocol_logging: bool)
Create a new client and begin polling chan
for requests.
pub fn spawn_new_local_client( self, sender: UnboundedSender<MessageBuf>, receiver: UnboundedReceiver<MessageBuf>, protocol_logging: bool, )
Sourcepub fn display_info(&self) -> DisplayInfo
pub fn display_info(&self) -> DisplayInfo
The current display info.
Sourcepub fn set_display_info(&mut self, display_info: &DisplayInfo)
pub fn set_display_info(&mut self, display_info: &DisplayInfo)
Set the current display info.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Display
impl !RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl !UnwindSafe for Display
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)