pub struct WalInfo<T: Codec> {
pub height: u64,
pub round: u64,
pub step: Step,
pub lock: Option<WalLock<T>>,
pub from: UpdateFrom,
}
Expand description
Structure of Wal Info
Fields
height: u64
height
round: u64
round
step: Step
step
lock: Option<WalLock<T>>
lock
from: UpdateFrom
from
Implementations
sourceimpl<T: Codec> WalInfo<T>
impl<T: Codec> WalInfo<T>
sourcepub fn into_smr_base(self) -> SMRBase
pub fn into_smr_base(self) -> SMRBase
transfer WalInfo to SMRBase
Trait Implementations
sourceimpl<T: Codec> Decodable for WalInfo<T>
impl<T: Codec> Decodable for WalInfo<T>
sourcefn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl<'de, T: Codec> Deserialize<'de> for WalInfo<T> where
T: Deserialize<'de>,
impl<'de, T: Codec> Deserialize<'de> for WalInfo<T> where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq + Codec> Eq for WalInfo<T>
impl<T: Codec> StructuralEq for WalInfo<T>
impl<T: Codec> StructuralPartialEq for WalInfo<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for WalInfo<T> where
T: RefUnwindSafe,
impl<T> Send for WalInfo<T>
impl<T> Sync for WalInfo<T> where
T: Sync,
impl<T> Unpin for WalInfo<T> where
T: Unpin,
impl<T> UnwindSafe for WalInfo<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more