pub struct Cnx {
src: String,
dst: String,
pub msg: String,
pub batch: Option<u32>,
pub store: Option<bool>,
}
Expand description
This represents a connection between 2 tasks (nodes) in the configuration graph.
Fields§
§src: String
Source node id.
dst: String
§msg: String
Message type exchanged betwee src and dst.
batch: Option<u32>
Tells Copper to batch messages before sending the buffer to the next node. If None, Copper will just send 1 message at a time. If Some(n), Copper will batch n messages before sending the buffer.
store: Option<bool>
Tells Copper if it needs to log the messages.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cnx
impl<'de> Deserialize<'de> for Cnx
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
Auto Trait Implementations§
impl Freeze for Cnx
impl RefUnwindSafe for Cnx
impl Send for Cnx
impl Sync for Cnx
impl Unpin for Cnx
impl UnwindSafe for Cnx
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