pub struct StreamPlan {
pub assignments: Vec<StreamAssignment>,
pub sync_points: Vec<SyncPoint>,
pub num_streams: usize,
pub max_streams: usize,
}Expand description
The result of stream partitioning.
Fields§
§assignments: Vec<StreamAssignment>Per-node stream assignments.
sync_points: Vec<SyncPoint>Cross-stream sync points (event record/wait pairs to insert).
num_streams: usizeNumber of distinct streams used.
max_streams: usizeMaximum number of streams the pass was allowed to create.
Implementations§
Source§impl StreamPlan
impl StreamPlan
Sourcepub fn stream_of(&self, node: NodeId) -> StreamId
pub fn stream_of(&self, node: NodeId) -> StreamId
Returns the stream assigned to node, or StreamId(0) if not found.
Sourcepub fn has_concurrency(&self) -> bool
pub fn has_concurrency(&self) -> bool
Returns true if any two nodes have been assigned to different streams.
Sourcepub fn sync_count(&self) -> usize
pub fn sync_count(&self) -> usize
Returns the number of cross-stream synchronisation points.
Trait Implementations§
Source§impl Clone for StreamPlan
impl Clone for StreamPlan
Source§fn clone(&self) -> StreamPlan
fn clone(&self) -> StreamPlan
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 moreAuto Trait Implementations§
impl Freeze for StreamPlan
impl RefUnwindSafe for StreamPlan
impl Send for StreamPlan
impl Sync for StreamPlan
impl Unpin for StreamPlan
impl UnsafeUnpin for StreamPlan
impl UnwindSafe for StreamPlan
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