pub struct NotificationRequest { /* private fields */ }
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.
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