pub struct Cnx {
pub msg: String,
pub batch: Option<u32>,
pub store: Option<bool>,
/* private fields */
}
Expand description
This represents a connection between 2 tasks (nodes) in the configuration graph.
Fields§
§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<Cnx, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cnx, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Cnx
impl Serialize for Cnx
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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