Trait parity_machine::WithMetadata [−][src]
pub trait WithMetadata: LiveBlock { fn metadata(&self) -> Option<&[u8]>; fn set_metadata(&mut self, value: Option<Vec<u8>>); }
A state machine with block metadata.
Required Methods
fn metadata(&self) -> Option<&[u8]>
Get the current live block metadata.
fn set_metadata(&mut self, value: Option<Vec<u8>>)
Set the current live block metadata.