pub struct ChannelSpec { /* private fields */ }Expand description
A channel that should exist once the solution is applied.
Implementations§
Source§impl ChannelSpec
impl ChannelSpec
Sourcepub fn new(
schema: SchemaId,
backpressure: Backpressure,
producers: impl Iterator<Item = EndpointId>,
consumers: impl Iterator<Item = EndpointId>,
) -> Self
pub fn new( schema: SchemaId, backpressure: Backpressure, producers: impl Iterator<Item = EndpointId>, consumers: impl Iterator<Item = EndpointId>, ) -> Self
Create a new channel specification.
Sourcepub fn key(&self) -> &ChannelKey
pub fn key(&self) -> &ChannelKey
Access the channel key.
Trait Implementations§
Source§impl Clone for ChannelSpec
impl Clone for ChannelSpec
Source§fn clone(&self) -> ChannelSpec
fn clone(&self) -> ChannelSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelSpec
impl Debug for ChannelSpec
Source§impl PartialEq for ChannelSpec
impl PartialEq for ChannelSpec
impl Eq for ChannelSpec
impl StructuralPartialEq for ChannelSpec
Auto Trait Implementations§
impl Freeze for ChannelSpec
impl RefUnwindSafe for ChannelSpec
impl Send for ChannelSpec
impl Sync for ChannelSpec
impl Unpin for ChannelSpec
impl UnsafeUnpin for ChannelSpec
impl UnwindSafe for ChannelSpec
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