pub struct Channel {
pub id: ChannelId,
pub token_type: TokenType,
pub capacity: usize,
pub source: Option<OperatorId>,
pub destinations: Vec<OperatorId>,
}Expand description
A channel connecting operators
Fields§
§id: ChannelId§token_type: TokenTypeType of tokens in this channel
capacity: usizeBounded buffer capacity
source: Option<OperatorId>Source operator (None for external inputs)
destinations: Vec<OperatorId>Destination operators
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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