Struct bee_message::payload::milestone::MilestonePayload [−][src]
pub struct MilestonePayload { /* fields omitted */ }
A payload which defines the inclusion set of other messages in the Tangle.
Implementations
impl MilestonePayload
[src]
impl MilestonePayload
[src]pub const KIND: u32
[src]
The payload kind of a MilestonePayload
.
pub fn new(
essence: MilestonePayloadEssence,
signatures: Vec<[u8; 64]>
) -> Result<Self, Error>
[src]
essence: MilestonePayloadEssence,
signatures: Vec<[u8; 64]>
) -> Result<Self, Error>
Creates a new MilestonePayload
.
pub fn id(&self) -> MilestoneId
[src]
Computes the identifier of a MilestonePayload
.
pub fn essence(&self) -> &MilestonePayloadEssence
[src]
Returns the essence of a MilestonePayload
.
pub fn signatures(&self) -> &Vec<Box<[u8]>>
[src]
Returns the signatures of a MilestonePayload
.
pub fn validate(
&self,
applicable_public_keys: &[String],
min_threshold: usize
) -> Result<(), MilestoneValidationError>
[src]
&self,
applicable_public_keys: &[String],
min_threshold: usize
) -> Result<(), MilestoneValidationError>
Semantically validate a MilestonePayload
.
Trait Implementations
impl Clone for MilestonePayload
[src]
impl Clone for MilestonePayload
[src]fn clone(&self) -> MilestonePayload
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for MilestonePayload
[src]
impl Eq for MilestonePayload
[src]impl From<MilestonePayload> for Payload
[src]
impl From<MilestonePayload> for Payload
[src]fn from(payload: MilestonePayload) -> Self
[src]
impl Packable for MilestonePayload
[src]
impl Packable for MilestonePayload
[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize
[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>
[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized,
[src]
R: Read + ?Sized,
impl PartialEq<MilestonePayload> for MilestonePayload
[src]
impl PartialEq<MilestonePayload> for MilestonePayload
[src]fn eq(&self, other: &MilestonePayload) -> bool
[src]
fn ne(&self, other: &MilestonePayload) -> bool
[src]
impl StructuralEq for MilestonePayload
[src]
impl StructuralEq for MilestonePayload
[src]impl StructuralPartialEq for MilestonePayload
[src]
impl StructuralPartialEq for MilestonePayload
[src]Auto Trait Implementations
impl RefUnwindSafe for MilestonePayload
impl RefUnwindSafe for MilestonePayload
impl Send for MilestonePayload
impl Send for MilestonePayload
impl Sync for MilestonePayload
impl Sync for MilestonePayload
impl Unpin for MilestonePayload
impl Unpin for MilestonePayload
impl UnwindSafe for MilestonePayload
impl UnwindSafe for MilestonePayload