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 !RefUnwindSafe for UserData
impl !UnwindSafe for UserData
impl Freeze for UserData
impl Send for UserData
impl Sync for UserData
impl Unpin for UserData
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.