pub struct Notice<T, K = u64> {
pub key: Option<K>,
pub priority: NoticePriority,
pub message: T,
pub lifetime_seconds: f64,
}Expand description
Caller-owned notice specification. None keys are always independent.
Insertion validates a finite, strictly positive lifetime in seconds. Invalid
specifications are returned intact. This duration remains the authored
specification; read NoticeView::remaining_seconds for current expiry.
Fields§
§key: Option<K>§priority: NoticePriority§message: T§lifetime_seconds: f64Trait Implementations§
impl<T, K> StructuralPartialEq for Notice<T, K>
Auto Trait Implementations§
impl<T, K> Freeze for Notice<T, K>
impl<T, K> RefUnwindSafe for Notice<T, K>where
T: RefUnwindSafe,
K: RefUnwindSafe,
impl<T, K> Send for Notice<T, K>
impl<T, K> Sync for Notice<T, K>
impl<T, K> Unpin for Notice<T, K>
impl<T, K> UnwindSafe for Notice<T, K>where
T: UnwindSafe,
K: 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