Struct canadensis_core::transfer::Transfer
source · pub struct Transfer<A, I, T: Transport + ?Sized> {
pub header: Header<I, T>,
pub loopback: bool,
pub payload: A,
}
Expand description
A Cyphal transfer (either incoming or outgoing)
Fields§
§header: Header<I, T>
The transfer header
loopback: bool
The loopback flag
The exact meaning of this flag depends on the transport. Generally, when a transport handles an outgoing loopback transfer, it creates a duplicate transfer with the loopback flag set to true and sends that transfer back through the local receiving process.
If the transport does not support loopback, this flag has no effect.
payload: A
The actual transfer payload
The type A usually implements AsRef<[u8]>
. It is often a Vec<u8>
or a &[u8]
.