Struct flowcore::model::connection::Connection
source · pub struct Connection { /* private fields */ }
Expand description
Connection
defines a connection between the output of one function or flow to the input
of another function or flow and maybe optionally named for legibility/debugging.
Implementations§
source§impl Connection
impl Connection
sourcepub fn new<R>(from_route: R, to_route: R) -> Selfwhere
R: Into<Route>,
pub fn new<R>(from_route: R, to_route: R) -> Selfwhere R: Into<Route>,
Create a new Route with from_route
as the source Route
and to_route
as the destination
sourcepub fn connect(&mut self, from_io: IO, to_io: IO, level: usize) -> Result<()>
pub fn connect(&mut self, from_io: IO, to_io: IO, level: usize) -> Result<()>
Connect the from_io
to the to_io
inside a flow at level level
, if they are compatible
sourcepub fn from_io_mut(&mut self) -> &mut IO
pub fn from_io_mut(&mut self) -> &mut IO
Return a mutable reference to the from_io
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Connection
impl Debug for Connection
source§impl Default for Connection
impl Default for Connection
source§fn default() -> Connection
fn default() -> Connection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Connection
impl<'de> Deserialize<'de> for Connection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Connection
impl Display for Connection
source§impl Serialize for Connection
impl Serialize for Connection
Auto Trait Implementations§
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