pub struct Graph<C: Config> { /* private fields */ }
Implementations§
Source§impl<C: Config> Graph<C>
impl<C: Config> Graph<C>
pub fn process(&mut self, context: &C::Context)
pub fn insert(&mut self, id: u64, processor: Box<dyn Processor<C>>)
pub fn set( &mut self, target: u64, param: C::Parameter, value: C::Value, ) -> Result<(), Error<C::Parameter>>
pub fn connect( &mut self, target: u64, param: C::Parameter, source: u64, ) -> Result<(), Error<C::Parameter>>
pub fn remove( &mut self, id: u64, ) -> Result<Box<dyn Processor<C>>, Error<C::Parameter>>
pub fn get(&self, id: u64) -> Result<&C::Output, Error<C::Parameter>>
pub fn get_mut( &mut self, id: u64, ) -> Result<&mut C::Output, Error<C::Parameter>>
pub fn update(&mut self) -> Result<(), Error<C::Parameter>>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Graph<C>
impl<C> !RefUnwindSafe for Graph<C>
impl<C> Send for Graph<C>
impl<C> Sync for Graph<C>
impl<C> Unpin for Graph<C>
impl<C> !UnwindSafe for Graph<C>
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