pub enum ExtendViewError {
TriedToExtendNonEpochView {
view: ViewNumber,
},
GetViewTimeoutError {
view: ViewNumber,
},
}
Expand description
Extending the view can fail in two ways:
- If an attempt is made to extend a view that is not an epoch-change view. If succesful, such action would violate the invariant that only epoch-change views can be updated.
- If the current timeout for the view cannot be obtained from the
PacemakerState
. If successful, such action would violate the invariant that a view can only be extended if its timeout is known.
Variants§
Trait Implementations§
source§impl Debug for ExtendViewError
impl Debug for ExtendViewError
source§impl From<ExtendViewError> for PacemakerError
impl From<ExtendViewError> for PacemakerError
source§fn from(value: ExtendViewError) -> Self
fn from(value: ExtendViewError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtendViewError
impl RefUnwindSafe for ExtendViewError
impl Send for ExtendViewError
impl Sync for ExtendViewError
impl Unpin for ExtendViewError
impl UnwindSafe for ExtendViewError
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