pub enum UpdateViewError {
NonIncreasingViewError {
cur_view: ViewNumber,
next_view: ViewNumber,
},
GetViewTimeoutError {
view: ViewNumber,
},
}
Expand description
Updating the view can fail in two ways:
- If an attempt is made to update the view to a lower view than the current view. If successful, such action would violate the invariant the views obtained through Pacemaker::view_info are monotonically increasing.
- If the timeout for the target view cannot be found in the
PacemakerState
. If succesful, such action would violate the invariant that on providing the current view throughPacemaker::view_info
the Pacemaker must also provide its deadline.
Variants§
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