Struct nimble_rust::combinator::Combinator
source · pub struct Combinator<T> {
pub in_buffers: HashMap<ParticipantId, Steps<T>>,
pub tick_id_to_produce: TickId,
}
Fields§
§in_buffers: HashMap<ParticipantId, Steps<T>>
§tick_id_to_produce: TickId
Implementations§
source§impl<T> Combinator<T>
impl<T> Combinator<T>
pub fn new(tick_id_to_produce: TickId) -> Combinator<T>
pub fn create_buffer(&mut self, id: ParticipantId)
pub fn add(&mut self, id: ParticipantId, step: T)
pub fn get_mut(&mut self, id: &ParticipantId) -> Option<&mut Steps<T>>
pub fn participants_that_can_provide(&self) -> (usize, usize)
pub fn produce(&mut self) -> Result<ParticipantSteps<T>, CombinatorError>
Trait Implementations§
source§impl<T> Default for Combinator<T>where
T: Default,
impl<T> Default for Combinator<T>where
T: Default,
source§fn default() -> Combinator<T>
fn default() -> Combinator<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for Combinator<T>
impl<T> RefUnwindSafe for Combinator<T>where
T: RefUnwindSafe,
impl<T> Send for Combinator<T>where
T: Send,
impl<T> Sync for Combinator<T>where
T: Sync,
impl<T> Unpin for Combinator<T>where
T: Unpin,
impl<T> UnwindSafe for Combinator<T>where
T: UnwindSafe,
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