pub struct Flowgraph { /* private fields */ }Expand description
A remote Flowgraph.
Implementations§
Source§impl Flowgraph
impl Flowgraph
Sourcepub async fn update(&mut self) -> Result<(), Error>
pub async fn update(&mut self) -> Result<(), Error>
Update the Flowgraph, getting current blocks and connections.
Sourcepub fn block_by_name(&self, name: &str) -> Option<Block>
pub fn block_by_name(&self, name: &str) -> Option<Block>
Sourcepub fn block_by(
&self,
pred: impl Fn(&BlockDescription) -> bool,
) -> Option<Block>
pub fn block_by( &self, pred: impl Fn(&BlockDescription) -> bool, ) -> Option<Block>
Find the first Block of the Flowgraph matching the given predicate
on BlockDescription.
Returns None if no BlockDescription matches given predicate.
Sourcepub fn message_connections(&self) -> Vec<Connection>
pub fn message_connections(&self) -> Vec<Connection>
Get a list of all message Connections of the Flowgraph.
Sourcepub fn stream_connections(&self) -> Vec<Connection>
pub fn stream_connections(&self) -> Vec<Connection>
Get a list of all stream Connections of the Flowgraph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Flowgraph
impl !RefUnwindSafe for Flowgraph
impl Send for Flowgraph
impl Sync for Flowgraph
impl Unpin for Flowgraph
impl !UnwindSafe for Flowgraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.