Enum abci::types::OfferSnapshotResult
source · [−]#[repr(i32)]
pub enum OfferSnapshotResult {
Unknown,
Accept,
Abort,
Reject,
RejectFormat,
RejectSender,
}
Variants
Unknown
Unknown result, abort all snapshot restoration
Accept
Snapshot accepted, apply chunks
Abort
Abort all snapshot restoration
Reject
Reject this specific snapshot, try others
RejectFormat
Reject all snapshots of this format, try others
RejectSender
Reject all snapshots from the sender(s), try others
Implementations
sourceimpl Result
impl Result
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations
sourceimpl Ord for Result
impl Ord for Result
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Result> for Result
impl PartialOrd<Result> for Result
sourcefn partial_cmp(&self, other: &Result) -> Option<Ordering>
fn partial_cmp(&self, other: &Result) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Result
impl Eq for Result
impl StructuralEq for Result
impl StructuralPartialEq for Result
Auto Trait Implementations
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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