pub struct ChannelDescriptor {
pub name: String,
pub origin: ChannelOrigin,
pub state: ChannelState,
}Expand description
One roster entry, minimally.
Deliberately NOT the full status: an enumeration is a census instrument, and a census needs names, origins, and states — not schemas. A by-name probe can confirm that every EXPECTED name is present but can never detect an unexpected extra, which is why the enumerator exists at all.
Fields§
§name: StringThe roster key.
origin: ChannelOriginWhere the entry came from.
state: ChannelStateThe entry’s state at the moment of the read.
Trait Implementations§
Source§impl Clone for ChannelDescriptor
impl Clone for ChannelDescriptor
Source§fn clone(&self) -> ChannelDescriptor
fn clone(&self) -> ChannelDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChannelDescriptor
impl Debug for ChannelDescriptor
impl Eq for ChannelDescriptor
Source§impl PartialEq for ChannelDescriptor
impl PartialEq for ChannelDescriptor
impl StructuralPartialEq for ChannelDescriptor
Auto Trait Implementations§
impl Freeze for ChannelDescriptor
impl RefUnwindSafe for ChannelDescriptor
impl Send for ChannelDescriptor
impl Sync for ChannelDescriptor
impl Unpin for ChannelDescriptor
impl UnsafeUnpin for ChannelDescriptor
impl UnwindSafe for ChannelDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.