pub enum TextTarget {
Session(SessionId),
Channel(ChannelId),
Tree(ChannelId),
}Expand description
Where a text message is aimed, in the wire’s vocabulary.
Exactly one target, because that is all the official client ever sends: the chat bar names one channel, the tree menu names one root, and a private message names one session. Accepting a mix would mean inventing a fan-out nobody asked for, so it is refused where the wire is parsed (R6).
REF: references/mumble/src/mumble/ServerHandler.cpp :
sendUserTextMessage adds one session, sendChannelTextMessage adds one
channel_id or one tree_id.
Variants§
Trait Implementations§
Source§impl Clone for TextTarget
impl Clone for TextTarget
Source§fn clone(&self) -> TextTarget
fn clone(&self) -> TextTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextTarget
impl Debug for TextTarget
Source§impl PartialEq for TextTarget
impl PartialEq for TextTarget
impl Copy for TextTarget
impl Eq for TextTarget
impl StructuralPartialEq for TextTarget
Auto Trait Implementations§
impl Freeze for TextTarget
impl RefUnwindSafe for TextTarget
impl Send for TextTarget
impl Sync for TextTarget
impl Unpin for TextTarget
impl UnwindSafe for TextTarget
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