pub struct Topology { /* private fields */ }
Expand description
The actual graph that backs a Flowgraph.
Implementations
sourceimpl Topology
impl Topology
pub fn block_id(&self, name: &str) -> Option<usize>
pub fn block_name(&self, id: usize) -> Option<&str>
sourcepub fn delete_block(&mut self, id: usize)
pub fn delete_block(&mut self, id: usize)
pub fn connect_stream<B: BufferBuilder + Debug + Eq + Hash>(
&mut self,
src_block: usize,
src_port: &str,
dst_block: usize,
dst_port: &str,
buffer_builder: B
) -> Result<()>
pub fn connect_message(
&mut self,
src_block: usize,
src_port: &str,
dst_block: usize,
dst_port: &str
) -> Result<()>
pub fn validate(&self) -> Result<()>
pub fn block_ref(&self, id: usize) -> Option<&Block>
pub fn block_mut(&mut self, id: usize) -> Option<&mut Block>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Topology
impl Send for Topology
impl !Sync for Topology
impl Unpin for Topology
impl !UnwindSafe for Topology
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more