pub struct SignedPublication { /* private fields */ }Expand description
A PUBLISH signed once, to be sent on several links of one node: every copy is the same publication, so a subscriber hearing it on several links delivers it once.
Implementations§
Source§impl SignedPublication
impl SignedPublication
Sourcepub fn sign(
key: &NodeKey,
seq: &PublicationSeq,
p: Publication,
) -> Result<SignedPublication, LinkError>
pub fn sign( key: &NodeKey, seq: &PublicationSeq, p: Publication, ) -> Result<SignedPublication, LinkError>
Signs p with key at the next seq of seq.
Trait Implementations§
Source§impl Clone for SignedPublication
impl Clone for SignedPublication
Source§impl Debug for SignedPublication
impl Debug for SignedPublication
Source§impl PartialEq for SignedPublication
impl PartialEq for SignedPublication
impl StructuralPartialEq for SignedPublication
Auto Trait Implementations§
impl Freeze for SignedPublication
impl RefUnwindSafe for SignedPublication
impl Send for SignedPublication
impl Sync for SignedPublication
impl Unpin for SignedPublication
impl UnsafeUnpin for SignedPublication
impl UnwindSafe for SignedPublication
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