pub struct Channel {
pub name: String,
pub platform: Platform,
pub heat: f64,
pub last_ms: u64,
pub messages: VecDeque<Message>,
/* private fields */
}Expand description
live state for a single channel. bounded ring buffer — a raid can flood
forever and we never grow past cap (mele is 8GB; resource-conscious).
heat is a decaying counter driven by message arrivals.
Fields§
§name: String§platform: Platform§heat: f64§last_ms: u64wall-clock ms of the last heat update — decay is computed against it.
messages: VecDeque<Message>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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