pub struct ChannelRegistry { /* private fields */ }Expand description
Immutable registry of Channel bindings (built before start).
Implementations§
Source§impl ChannelRegistry
impl ChannelRegistry
Sourcepub fn build(bindings: Vec<ChannelBinding>) -> Result<Self, StartupError>
pub fn build(bindings: Vec<ChannelBinding>) -> Result<Self, StartupError>
Build from bindings; rejects duplicate IDs.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&ChannelId, &ChannelBinding)>
pub fn iter(&self) -> impl Iterator<Item = (&ChannelId, &ChannelBinding)>
Iterate bindings.
Sourcepub fn get(&self, id: &ChannelId) -> Option<&ChannelBinding>
pub fn get(&self, id: &ChannelId) -> Option<&ChannelBinding>
Lookup by id.
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelRegistry
impl !UnwindSafe for ChannelRegistry
impl Freeze for ChannelRegistry
impl Send for ChannelRegistry
impl Sync for ChannelRegistry
impl Unpin for ChannelRegistry
impl UnsafeUnpin for ChannelRegistry
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