pub struct Event<ContentType> { /* private fields */ }Implementations§
Source§impl<ContentType> Event<ContentType>
impl<ContentType> Event<ContentType>
pub fn new(content: ContentType) -> Self
pub fn set_header(&mut self, id: u64, source_id: u64)
pub fn get_id(&self) -> u64
pub fn get_source_id(&self) -> u64
pub fn get_content(&self) -> &ContentType
pub fn get_mut_content(&mut self) -> &mut ContentType
Auto Trait Implementations§
impl<ContentType> Freeze for Event<ContentType>where
ContentType: Freeze,
impl<ContentType> RefUnwindSafe for Event<ContentType>where
ContentType: RefUnwindSafe,
impl<ContentType> Send for Event<ContentType>where
ContentType: Send,
impl<ContentType> Sync for Event<ContentType>where
ContentType: Sync,
impl<ContentType> Unpin for Event<ContentType>where
ContentType: Unpin,
impl<ContentType> UnwindSafe for Event<ContentType>where
ContentType: 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