pub struct ChannelCluster { /* private fields */ }Expand description
The shared channel supervisor backing every configured channel (SRV-005).
Plus the cluster resolver when clustering is configured. All channels run on this ONE supervisor’s scheduler so they share the clustered distribution transport; the resolver is the SAME instance handed to that scheduler, kept here so the cluster can dial seeds and learn peer names on it.
Implementations§
Source§impl ChannelCluster
impl ChannelCluster
Sourcepub const fn supervisor(&self) -> &ChannelSupervisor
pub const fn supervisor(&self) -> &ChannelSupervisor
The shared channel supervisor.
Sourcepub const fn resolver(&self) -> Option<&Arc<ClusterResolver>>
pub const fn resolver(&self) -> Option<&Arc<ClusterResolver>>
The cluster resolver, present only when clustering is configured.
Trait Implementations§
Source§impl Clone for ChannelCluster
impl Clone for ChannelCluster
Source§fn clone(&self) -> ChannelCluster
fn clone(&self) -> ChannelCluster
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ChannelCluster
impl !UnwindSafe for ChannelCluster
impl Freeze for ChannelCluster
impl Send for ChannelCluster
impl Sync for ChannelCluster
impl Unpin for ChannelCluster
impl UnsafeUnpin for ChannelCluster
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