pub struct BackendFactory { /* private fields */ }Expand description
Registry of named backend constructors with caching.
Implementations§
Source§impl BackendFactory
impl BackendFactory
Sourcepub fn register(&mut self, name: &'static str, ctor: BackendCtor)
pub fn register(&mut self, name: &'static str, ctor: BackendCtor)
Register a named backend constructor.
Sourcepub fn create_any(
&mut self,
name: &str,
params: &HashMap<String, ParamValue>,
) -> Result<BackendParts, String>
pub fn create_any( &mut self, name: &str, params: &HashMap<String, ParamValue>, ) -> Result<BackendParts, String>
Create a backend returning whatever capabilities it provides. Use this when the graph determines what’s needed (launch path).
Sourcepub fn create_output(
&mut self,
name: &str,
params: &HashMap<String, ParamValue>,
) -> Result<OutputBundle, String>
pub fn create_output( &mut self, name: &str, params: &HashMap<String, ParamValue>, ) -> Result<OutputBundle, String>
Create an output-only backend.
Sourcepub fn create_input(
&mut self,
name: &str,
params: &HashMap<String, ParamValue>,
) -> Result<InputBundle, String>
pub fn create_input( &mut self, name: &str, params: &HashMap<String, ParamValue>, ) -> Result<InputBundle, String>
Create an input-only backend.
Sourcepub fn create_duplex(
&mut self,
name: &str,
params: &HashMap<String, ParamValue>,
) -> Result<DuplexBundle, String>
pub fn create_duplex( &mut self, name: &str, params: &HashMap<String, ParamValue>, ) -> Result<DuplexBundle, String>
Create a full-duplex backend.
Trait Implementations§
Source§impl Clone for BackendFactory
impl Clone for BackendFactory
Source§fn clone(&self) -> BackendFactory
fn clone(&self) -> BackendFactory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BackendFactory
impl !UnwindSafe for BackendFactory
impl Freeze for BackendFactory
impl Send for BackendFactory
impl Sync for BackendFactory
impl Unpin for BackendFactory
impl UnsafeUnpin for BackendFactory
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