pub enum ConstantViewError {
Empty,
}Expand description
Failure modes the ConstantView peer selector can surface to callers.
Variants§
Empty
The view has zero peers and Random / NearKey asked
for at least one.
Trait Implementations§
Source§impl Debug for ConstantViewError
impl Debug for ConstantViewError
Source§impl Display for ConstantViewError
impl Display for ConstantViewError
Source§impl Error for ConstantViewError
impl Error for ConstantViewError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConstantViewError
impl RefUnwindSafe for ConstantViewError
impl Send for ConstantViewError
impl Sync for ConstantViewError
impl Unpin for ConstantViewError
impl UnsafeUnpin for ConstantViewError
impl UnwindSafe for ConstantViewError
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