backend.udev: review docs

This commit is contained in:
Victor Berger 2021-07-02 15:37:20 +02:00 committed by Victor Berger
parent 468a3bb8dc
commit 1c59625a06
1 changed files with 6 additions and 8 deletions

View File

@ -1,13 +1,11 @@
//! `udev` related functionality for automated device scanning
//! //!
//! Provides `udev` related functionality for automated device scanning. //! This module mainly provides the [`UdevBackend`], which monitors available DRM devices and acts as
//! an event source to be inserted in [`calloop`], generating events whenever these devices change.
//! //!
//! This module mainly provides the [`UdevBackend`], which //! *Note:* Once inserted into the event loop, the [`UdevBackend`] will only notify you about *changes*
//! monitors available DRM devices and acts as an event source, generating events whenever these //! in the device list. To get an initial snapshot of the state during your initialization, you need to
//! devices change. //! call its `device_list` method.
//!
//! *Note:* Once inserted into the event loop, the [`UdevBackend`] will
//! only notify you about *changes* in the device list. To get an initial snapshot of the state during
//! your initialization, you need to call its `device_list` method.
//! //!
//! ```no_run //! ```no_run
//! use smithay::backend::udev::{UdevBackend, UdevEvent}; //! use smithay::backend::udev::{UdevBackend, UdevEvent};