Struct dora_node_api::DoraNode
source · pub struct DoraNode { /* private fields */ }Implementations§
source§impl DoraNode
impl DoraNode
pub fn init_from_env() -> Result<(Self, EventStream)>
pub fn init(node_config: NodeConfig) -> Result<(Self, EventStream)>
pub fn send_output<F>( &mut self, output_id: DataId, parameters: MetadataParameters<'_>, data_len: usize, data: F ) -> Result<()>where F: FnOnce(&mut [u8]),
pub fn send_output_sample( &mut self, output_id: DataId, parameters: MetadataParameters<'_>, sample: Option<DataSample> ) -> Result<()>
pub fn close_outputs(&mut self, outputs: Vec<DataId>) -> Result<()>
pub fn id(&self) -> &NodeId
pub fn node_config(&self) -> &NodeRunConfig
pub fn allocate_data_sample(&mut self, data_len: usize) -> Result<DataSample>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DoraNode
impl Send for DoraNode
impl !Sync for DoraNode
impl Unpin for DoraNode
impl !UnwindSafe for DoraNode
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