pub struct EventAttributes<'a> { /* private fields */ }Implementations§
Source§impl<'a> EventAttributes<'a>
impl<'a> EventAttributes<'a>
pub const fn new() -> Self
pub fn with_message(self, message: &'a CStr) -> Self
pub fn with_category(self, category: Category) -> Self
pub fn with_color(self, color: Color) -> Self
pub fn with_payload(self, payload: Payload) -> Self
pub const fn message(&self) -> Option<&'a CStr>
pub const fn category(&self) -> Option<Category>
pub const fn color(&self) -> Option<Color>
pub const fn payload(&self) -> Option<Payload>
Trait Implementations§
Source§impl<'a> Clone for EventAttributes<'a>
impl<'a> Clone for EventAttributes<'a>
Source§fn clone(&self) -> EventAttributes<'a>
fn clone(&self) -> EventAttributes<'a>
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 moreimpl<'a> Copy for EventAttributes<'a>
Source§impl<'a> Debug for EventAttributes<'a>
impl<'a> Debug for EventAttributes<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventAttributes<'a>
impl<'a> RefUnwindSafe for EventAttributes<'a>
impl<'a> Send for EventAttributes<'a>
impl<'a> Sync for EventAttributes<'a>
impl<'a> Unpin for EventAttributes<'a>
impl<'a> UnsafeUnpin for EventAttributes<'a>
impl<'a> UnwindSafe for EventAttributes<'a>
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