pub struct EventPayload<T> { /* private fields */ }Implementations§
Source§impl<T> EventPayload<T>
impl<T> EventPayload<T>
pub fn new(value: T) -> EventPayload<T>
pub const fn get(&self) -> &T
pub fn into_inner(self) -> T
Trait Implementations§
Source§impl<T> Clone for EventPayload<T>where
T: Clone,
impl<T> Clone for EventPayload<T>where
T: Clone,
Source§fn clone(&self) -> EventPayload<T>
fn clone(&self) -> EventPayload<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for EventPayload<T>where
T: Debug,
impl<T> Debug for EventPayload<T>where
T: Debug,
Source§impl<T> From<T> for EventPayload<T>
impl<T> From<T> for EventPayload<T>
Source§fn from(value: T) -> EventPayload<T>
fn from(value: T) -> EventPayload<T>
Converts to this type from the input type.
Source§impl<T> PartialEq for EventPayload<T>where
T: PartialEq,
impl<T> PartialEq for EventPayload<T>where
T: PartialEq,
Source§fn eq(&self, other: &EventPayload<T>) -> bool
fn eq(&self, other: &EventPayload<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> Eq for EventPayload<T>where
T: Eq,
impl<T> StructuralPartialEq for EventPayload<T>
Auto Trait Implementations§
impl<T> Freeze for EventPayload<T>where
T: Freeze,
impl<T> RefUnwindSafe for EventPayload<T>where
T: RefUnwindSafe,
impl<T> Send for EventPayload<T>where
T: Send,
impl<T> Sync for EventPayload<T>where
T: Sync,
impl<T> Unpin for EventPayload<T>where
T: Unpin,
impl<T> UnsafeUnpin for EventPayload<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EventPayload<T>where
T: UnwindSafe,
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