pub struct BridgePacket {
pub header: BridgeHeader,
pub body: Vec<BridgePart>,
pub warrant: Option<BridgeWarrant>,
}Expand description
One BRIDGE packet, carrying a header, ordered typed parts, and optional warrant.
Fields§
§header: BridgeHeaderFixed packet header.
body: Vec<BridgePart>Ordered packet body parts.
warrant: Option<BridgeWarrant>Optional cross-trust warrant for book and spec content ids.
Implementations§
Source§impl BridgePacket
impl BridgePacket
Sourcepub fn canonicalized(&self) -> Self
pub fn canonicalized(&self) -> Self
Returns this packet with its header cid cleared for canonical hashing.
Trait Implementations§
Source§impl Clone for BridgePacket
impl Clone for BridgePacket
Source§fn clone(&self) -> BridgePacket
fn clone(&self) -> BridgePacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BridgePacket
impl Debug for BridgePacket
impl Eq for BridgePacket
Source§impl PartialEq for BridgePacket
impl PartialEq for BridgePacket
impl StructuralPartialEq for BridgePacket
Auto Trait Implementations§
impl Freeze for BridgePacket
impl RefUnwindSafe for BridgePacket
impl Send for BridgePacket
impl Sync for BridgePacket
impl Unpin for BridgePacket
impl UnsafeUnpin for BridgePacket
impl UnwindSafe for BridgePacket
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