pub enum UpdateViewError {
NonIncreasingViewError {
cur_view: ViewNumber,
next_view: ViewNumber,
},
GetViewTimeoutError {
view: ViewNumber,
},
}
Expand description
Enumerates the different ways a Pacemaker::update_view
call can fail.
Variants§
NonIncreasingViewError
An attempt was made to update the current view to a lower view. This violates the invariant that views must be monotonically increasing.
Fields
§
cur_view: ViewNumber
The current view.
§
next_view: ViewNumber
The lower view that the caller tried to change the current view to.
GetViewTimeoutError
The timeout for a requested view cannot be found in the PacemakerState
. This violates the invariant
that the Pacemaker
should be able to provide the timeout of any view it returns from
view_info
.
Fields
§
view: ViewNumber
Trait Implementations§
source§impl Debug for UpdateViewError
impl Debug for UpdateViewError
source§impl From<UpdateViewError> for PacemakerError
impl From<UpdateViewError> for PacemakerError
source§fn from(value: UpdateViewError) -> Self
fn from(value: UpdateViewError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateViewError
impl RefUnwindSafe for UpdateViewError
impl Send for UpdateViewError
impl Sync for UpdateViewError
impl Unpin for UpdateViewError
impl UnwindSafe for UpdateViewError
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