pub struct PacketBody {
pub units: Vec<UnitId>,
}Expand description
What a packet carries: the units it seals, in order.
The predecessor is not here — it is the node’s parent link. Putting it in the payload as well would be two encodings of one fact, which is how a chain gets silently re-rooted.
Fields§
§units: Vec<UnitId>The units this packet seals, in order.
Trait Implementations§
Source§impl Clone for PacketBody
impl Clone for PacketBody
Source§impl Debug for PacketBody
impl Debug for PacketBody
Source§impl<'de> Deserialize<'de> for PacketBody
impl<'de> Deserialize<'de> for PacketBody
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
impl Eq for PacketBody
Source§impl PartialEq for PacketBody
impl PartialEq for PacketBody
Source§impl Serialize for PacketBody
impl Serialize for PacketBody
impl StructuralPartialEq for PacketBody
Auto Trait Implementations§
impl Freeze for PacketBody
impl RefUnwindSafe for PacketBody
impl Send for PacketBody
impl Sync for PacketBody
impl Unpin for PacketBody
impl UnsafeUnpin for PacketBody
impl UnwindSafe for PacketBody
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