pub struct Event { /* private fields */ }Implementations§
Source§impl Event
impl Event
pub fn data<T>(self, data: T) -> Event
pub fn json_data<T>(self, data: T) -> Result<Event>where
T: Serialize,
pub fn comment<T>(self, comment: T) -> Event
pub fn event<T>(self, event: T) -> Event
pub fn retry(self, duration: Duration) -> Event
pub fn id<T>(self, id: T) -> Event
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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