pub enum UpgradeResult {
Complete(TimestampRecord),
Pending {
message: String,
},
}Available on crate feature
timestamps-ots only.Expand description
Result of attempting to upgrade a timestamp.
Variants§
Complete(TimestampRecord)
Upgrade completed successfully.
Pending
Timestamp is still pending (not yet anchored).
Implementations§
Source§impl UpgradeResult
impl UpgradeResult
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the upgrade is complete.
Sourcepub fn into_record(self) -> Option<TimestampRecord>
pub fn into_record(self) -> Option<TimestampRecord>
Get the upgraded timestamp record if complete.
Trait Implementations§
Source§impl Clone for UpgradeResult
impl Clone for UpgradeResult
Source§fn clone(&self) -> UpgradeResult
fn clone(&self) -> UpgradeResult
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 moreAuto Trait Implementations§
impl Freeze for UpgradeResult
impl RefUnwindSafe for UpgradeResult
impl Send for UpgradeResult
impl Sync for UpgradeResult
impl Unpin for UpgradeResult
impl UnsafeUnpin for UpgradeResult
impl UnwindSafe for UpgradeResult
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