Struct futuresdr::runtime::RuntimeHandle
source · pub struct RuntimeHandle { /* private fields */ }
Expand description
Runtime handle added as state to web handlers
Implementations§
source§impl RuntimeHandle
impl RuntimeHandle
sourcepub async fn start(&self, fg: Flowgraph) -> FlowgraphHandle
pub async fn start(&self, fg: Flowgraph) -> FlowgraphHandle
Start a Flowgraph
on the runtime
sourcepub fn add_flowgraph(&self, handle: FlowgraphHandle) -> usize
pub fn add_flowgraph(&self, handle: FlowgraphHandle) -> usize
Add a FlowgraphHandle
to make it available to web handlers
sourcepub fn get_flowgraph(&self, id: usize) -> Option<FlowgraphHandle>
pub fn get_flowgraph(&self, id: usize) -> Option<FlowgraphHandle>
Get handle to a running flowgraph
sourcepub fn get_flowgraphs(&self) -> Vec<usize>
pub fn get_flowgraphs(&self) -> Vec<usize>
Get list of flowgraph IDs
Trait Implementations§
source§impl Clone for RuntimeHandle
impl Clone for RuntimeHandle
source§fn clone(&self) -> RuntimeHandle
fn clone(&self) -> RuntimeHandle
Returns a copy 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 moresource§impl Debug for RuntimeHandle
impl Debug for RuntimeHandle
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeHandle
impl Send for RuntimeHandle
impl Sync for RuntimeHandle
impl Unpin for RuntimeHandle
impl !UnwindSafe for RuntimeHandle
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