pub struct Link {
pub seq: u64,
pub prev: Hash,
pub next: Hash,
}Expand description
One record as the chain sees it.
Fields§
§seq: u64§prev: HashThe chain head this record says it follows.
next: HashThe chain head after it: SHA-256(prev ‖ seq ‖ payload).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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