pub struct CompleteBlock<T: BlockMetadata> { /* private fields */ }Expand description
RAII guard for a block in the Staged state.
Implementations§
Source§impl<T: BlockMetadata + Sync> CompleteBlock<T>
impl<T: BlockMetadata + Sync> CompleteBlock<T>
Sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Returns the fixed block size of this block in tokens.
Sourcepub fn sequence_hash(&self) -> SequenceHash
pub fn sequence_hash(&self) -> SequenceHash
Returns the SequenceHash assigned during staging.
Sourcepub fn reset(self) -> MutableBlock<T>
pub fn reset(self) -> MutableBlock<T>
Roll back to a MutableBlock.
Trait Implementations§
Source§impl<T: BlockMetadata> Debug for CompleteBlock<T>
impl<T: BlockMetadata> Debug for CompleteBlock<T>
Source§impl<T: BlockMetadata> Drop for CompleteBlock<T>
impl<T: BlockMetadata> Drop for CompleteBlock<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for CompleteBlock<T>
impl<T> !UnwindSafe for CompleteBlock<T>
impl<T> Freeze for CompleteBlock<T>
impl<T> Send for CompleteBlock<T>
impl<T> Sync for CompleteBlock<T>
impl<T> Unpin for CompleteBlock<T>
impl<T> UnsafeUnpin for CompleteBlock<T>
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