pub struct Channel {
pub key: ChannelKey,
pub id: ChannelId,
pub parent: ChannelId,
pub scope: Scope,
pub name: String,
pub position: i32,
pub can_enter: bool,
pub can_text: bool,
pub links: BTreeSet<ChannelId>,
}Expand description
A channel in the shared view.
Fields§
§key: ChannelKeyStable identity across renders.
id: ChannelId§parent: ChannelIdThe root is its own parent.
scope: ScopePosition in the visibility tree. Extends the parent’s.
name: String§position: i32§can_enter: boolUI hint only: whether this connection may enter. Never a substitute for validating an actual join.
can_text: boolWhether text may be addressed here. Unlike can_enter it has no
ChannelState field of its own: it reaches the client as the
TEXT_MESSAGE bit of a PermissionQuery answer, and it is enforced
again when a message arrives, because a UI hint decides nothing.
links: BTreeSet<ChannelId>Trait Implementations§
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin 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