pub struct Connection {
pub output_treatment: IO,
pub output_name: String,
pub input_treatment: IO,
pub input_name: String,
pub attributes: Attributes,
pub design_reference: Option<Arc<dyn Reference>>,
}Expand description
Describes designed connection.
Main point of attention is about connection logic:
- a connection entry point is an output;
- a connection exit point is an input. But:
- when a connection starts from
self, its entry point is theselftreatment input; - when a connection ends to
self, its exit point is theselftreatment output.
In functions, all is always ordered in the connection direction, starting from entry point and finishing to exit point.
Fields§
§output_treatment: IO§output_name: String§input_treatment: IO§input_name: String§attributes: Attributes§design_reference: Option<Arc<dyn Reference>>Implementations§
Source§impl Connection
impl Connection
pub fn new_internal( output_name: &str, output_treatment: &Arc<RwLock<TreatmentInstanciation>>, input_name: &str, input_treatment: &Arc<RwLock<TreatmentInstanciation>>, attributes: Attributes, design_reference: Option<Arc<dyn Reference>>, ) -> Self
pub fn new_self( self_input_name: &str, self_output_name: &str, attributes: Attributes, design_reference: Option<Arc<dyn Reference>>, ) -> Self
pub fn new_self_to_internal( self_input_name: &str, input_name: &str, input_treatment: &Arc<RwLock<TreatmentInstanciation>>, attributes: Attributes, design_reference: Option<Arc<dyn Reference>>, ) -> Self
pub fn new_internal_to_self( output_name: &str, output_treatment: &Arc<RwLock<TreatmentInstanciation>>, self_output_name: &str, attributes: Attributes, design_reference: Option<Arc<dyn Reference>>, ) -> Self
Trait Implementations§
Source§impl Attribuable for Connection
impl Attribuable for Connection
fn attributes(&self) -> &Attributes
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.