pub struct Overlay {
pub channels: BTreeMap<ChannelId, Channel>,
pub users: BTreeMap<SessionId, User>,
}Expand description
Elements visible to exactly one connection.
This is the mechanism for individual exceptions - an admin in vanish, a private channel, a per-observer placement - as opposed to scopes, which describe groups. A scope with a single observer is an overlay in disguise.
Overlays are recomputed from scratch each turn and diffed against what the connection was last sent, which is why they never need journalling.
Fields§
§channels: BTreeMap<ChannelId, Channel>§users: BTreeMap<SessionId, User>Implementations§
Trait Implementations§
impl Eq for Overlay
impl StructuralPartialEq for Overlay
Auto Trait Implementations§
impl Freeze for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnwindSafe for Overlay
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