pub enum Audience {
Channel(ChannelKey),
Tree(ChannelKey),
User(Occupant),
}Expand description
Who a message is for, in the flavor’s own vocabulary.
Keys and occupants rather than wire identifiers, exactly like
crate::shard::ActionTarget: the flavor names what it rendered, and the
shard is what turns that into the sessions and channel ids a client holds.
Expanding an audience needs the view, which a Reply deliberately does not
have, so the expansion happens when the shard drains what was said.
Variants§
Channel(ChannelKey)
Everyone shown in that channel.
Tree(ChannelKey)
Everyone shown in that channel or in any channel below it.
User(Occupant)
One occupant, privately.
Trait Implementations§
impl Copy for Audience
impl Eq for Audience
impl StructuralPartialEq for Audience
Auto Trait Implementations§
impl Freeze for Audience
impl RefUnwindSafe for Audience
impl Send for Audience
impl Sync for Audience
impl Unpin for Audience
impl UnwindSafe for Audience
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