[−][src]Enum exonum_btc_anchoring::blockchain::BtcAnchoringState
Current state of the BTC anchoring service.
Variants
The usual anchoring workflow.
Fields of Regular
actual_configuration: Config
Current anchoring configuration.
The transition from the current anchoring address to the following one.
Fields of Transition
Methods
impl BtcAnchoringState
[src]
pub fn redeem_script(&self) -> RedeemScript
[src]
Returns the redeem script corresponding to the address to which the anchoring transaction will be sent.
pub fn script_pubkey(&self) -> Script
[src]
Returns the script_pubkey
for the corresponding redeem script.
pub fn output_address(&self) -> Address
[src]
Returns the output address for the corresponding redeem script.
pub fn is_regular(&self) -> bool
[src]
Checks that anchoring state is regular.
pub fn is_transition(&self) -> bool
[src]
Checks that anchoring is in the transition state.
pub fn actual_config(&self) -> &Config
[src]
Returns the actual anchoring configuration.
pub fn following_config(&self) -> Option<&Config>
[src]
Returns the following anchoring configuration if anchoring is in transition state.
pub fn following_anchoring_height(
&self,
latest_anchored_height: Option<Height>
) -> Height
[src]
&self,
latest_anchored_height: Option<Height>
) -> Height
Returns the nearest following anchoring height for the given height.
Trait Implementations
impl Clone for BtcAnchoringState
[src]
fn clone(&self) -> BtcAnchoringState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BtcAnchoringState
[src]
Auto Trait Implementations
impl RefUnwindSafe for BtcAnchoringState
impl Send for BtcAnchoringState
impl Sync for BtcAnchoringState
impl Unpin for BtcAnchoringState
impl UnwindSafe for BtcAnchoringState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,