pub struct UserData {
pub data: Option<Arc<dyn Any + Send + Sync>>,
}
Expand description
A wrapper around dyn Any
, used for passing custom user data
to crate::ViewportCommand::Screenshot
.
Fields§
§data: Option<Arc<dyn Any + Send + Sync>>
A user value given to the screenshot command,
that will be returned in crate::Event::Screenshot
.
Implementations§
Trait Implementations§
impl Eq for UserData
Auto Trait Implementations§
impl Freeze for UserData
impl !RefUnwindSafe for UserData
impl Send for UserData
impl Sync for UserData
impl Unpin for UserData
impl !UnwindSafe for UserData
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
)