pub enum ChannelOrigin {
BootConfigured,
RuntimeRegistered,
}Expand description
Where a roster entry came from.
Behaviourally inert — a boot-configured and a runtime-registered channel are
the same kind of object, built by the same function, on the same supervisor,
over the same store. The tag exists because it is the only field that
predicts what a process restart does: a BootConfigured entry is rebuilt
from the config file, a RuntimeRegistered entry is simply absent. It never
flips, so the population it names stays well defined over time.
Variants§
BootConfigured
Built by the boot loop from the operator’s [[channels]] config.
RuntimeRegistered
Registered at runtime through the embedded registration API.
Trait Implementations§
Source§impl Clone for ChannelOrigin
impl Clone for ChannelOrigin
Source§fn clone(&self) -> ChannelOrigin
fn clone(&self) -> ChannelOrigin
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 moreimpl Copy for ChannelOrigin
Source§impl Debug for ChannelOrigin
impl Debug for ChannelOrigin
impl Eq for ChannelOrigin
Source§impl PartialEq for ChannelOrigin
impl PartialEq for ChannelOrigin
impl StructuralPartialEq for ChannelOrigin
Auto Trait Implementations§
impl Freeze for ChannelOrigin
impl RefUnwindSafe for ChannelOrigin
impl Send for ChannelOrigin
impl Sync for ChannelOrigin
impl Unpin for ChannelOrigin
impl UnsafeUnpin for ChannelOrigin
impl UnwindSafe for ChannelOrigin
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.