Struct webrender_api::NotificationRequest
source · pub struct NotificationRequest {
pub(crate) handler: Option<Box<dyn NotificationHandler>>,
pub(crate) when: Checkpoint,
}
Expand description
A request to notify a handler when the transaction reaches certain stages of the rendering pipeline.
The request is guaranteed to be notified once and only once, even if the transaction is dropped before the requested check-point.
Fields§
§handler: Option<Box<dyn NotificationHandler>>
§when: Checkpoint
Implementations§
source§impl NotificationRequest
impl NotificationRequest
sourcepub fn new(when: Checkpoint, handler: Box<dyn NotificationHandler>) -> Self
pub fn new(when: Checkpoint, handler: Box<dyn NotificationHandler>) -> Self
Constructor.
sourcepub fn when(&self) -> Checkpoint
pub fn when(&self) -> Checkpoint
The specified stage at which point the handler should be notified.
Trait Implementations§
source§impl Clone for NotificationRequest
impl Clone for NotificationRequest
Auto Trait Implementations§
impl Freeze for NotificationRequest
impl !RefUnwindSafe for NotificationRequest
impl Send for NotificationRequest
impl Sync for NotificationRequest
impl Unpin for NotificationRequest
impl !UnwindSafe for NotificationRequest
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
)