pub struct Bip9SoftforkInfo {
pub status: Bip9SoftforkStatus,
pub bit: Option<u8>,
pub start_time: i64,
pub timeout: i64,
pub since: i64,
pub statistics: Option<Bip9SoftforkStatistics>,
}Expand description
Status of BIP-9 softforks.
Fields§
§status: Bip9SoftforkStatusOne of “defined”, “started”, “locked_in”, “active”, “failed”.
bit: Option<u8>The bit (0-28) in the block version field used to signal this softfork (only for “started” status).
start_time: i64The minimum median time past of a block at which the bit gains its meaning.
timeout: i64The median time past of a block at which the deployment is considered failed if not yet locked in.
since: i64Height of the first block to which the status applies.
statistics: Option<Bip9SoftforkStatistics>Numeric statistics about BIP-9 signalling for a softfork (only for “started” status).
Trait Implementations§
Source§impl Clone for Bip9SoftforkInfo
impl Clone for Bip9SoftforkInfo
Source§fn clone(&self) -> Bip9SoftforkInfo
fn clone(&self) -> Bip9SoftforkInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bip9SoftforkInfo
impl Debug for Bip9SoftforkInfo
Source§impl<'de> Deserialize<'de> for Bip9SoftforkInfo
impl<'de> Deserialize<'de> for Bip9SoftforkInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Bip9SoftforkInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Bip9SoftforkInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Bip9SoftforkInfo
impl PartialEq for Bip9SoftforkInfo
Source§impl Serialize for Bip9SoftforkInfo
impl Serialize for Bip9SoftforkInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Bip9SoftforkInfo
impl StructuralPartialEq for Bip9SoftforkInfo
Auto Trait Implementations§
impl Freeze for Bip9SoftforkInfo
impl RefUnwindSafe for Bip9SoftforkInfo
impl Send for Bip9SoftforkInfo
impl Sync for Bip9SoftforkInfo
impl Unpin for Bip9SoftforkInfo
impl UnwindSafe for Bip9SoftforkInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more