pub struct ModelConnections { /* private fields */ }Implementations§
Source§impl ModelConnections
impl ModelConnections
pub fn new(primary: ModelConnection, extras: Vec<ModelConnection>) -> Self
pub const fn primary_model(&self) -> &ModelSpec
pub fn primary_stream_fn(&self) -> Arc<dyn StreamFn>
pub fn extra_models(&self) -> &[(ModelSpec, Arc<dyn StreamFn>)]
pub fn into_parts( self, ) -> (ModelSpec, Arc<dyn StreamFn>, Vec<(ModelSpec, Arc<dyn StreamFn>)>)
Sourcepub const fn builder() -> ModelConnectionsBuilder
pub const fn builder() -> ModelConnectionsBuilder
Create a builder for constructing ModelConnections incrementally.
Auto Trait Implementations§
impl Freeze for ModelConnections
impl !RefUnwindSafe for ModelConnections
impl Send for ModelConnections
impl Sync for ModelConnections
impl Unpin for ModelConnections
impl UnsafeUnpin for ModelConnections
impl !UnwindSafe for ModelConnections
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