pub enum ReachabilityError<Key> {
DifferentRosters(SameRosterRequired),
RootOutsideRoster {
root: Key,
},
}Expand description
How a same-roster reachability question refuses before traversal.
Variants§
DifferentRosters(SameRosterRequired)
The two relation sides borrow different roster instances.
RootOutsideRoster
The declared root key is outside the shared roster.
Fields
§
root: KeyThe caller-declared root key.
Trait Implementations§
Source§impl<Key: Clone> Clone for ReachabilityError<Key>
impl<Key: Clone> Clone for ReachabilityError<Key>
Source§fn clone(&self) -> ReachabilityError<Key>
fn clone(&self) -> ReachabilityError<Key>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Key: Debug> Debug for ReachabilityError<Key>
impl<Key: Debug> Debug for ReachabilityError<Key>
Source§impl<Key> Display for ReachabilityError<Key>
impl<Key> Display for ReachabilityError<Key>
impl<Key: Eq> Eq for ReachabilityError<Key>
Source§impl<Key: Debug> Error for ReachabilityError<Key>
impl<Key: Debug> Error for ReachabilityError<Key>
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()
Source§impl<Key: Hash> Hash for ReachabilityError<Key>
impl<Key: Hash> Hash for ReachabilityError<Key>
Source§impl<Key: PartialEq> PartialEq for ReachabilityError<Key>
impl<Key: PartialEq> PartialEq for ReachabilityError<Key>
impl<Key: PartialEq> StructuralPartialEq for ReachabilityError<Key>
Auto Trait Implementations§
impl<Key> Freeze for ReachabilityError<Key>where
Key: Freeze,
impl<Key> RefUnwindSafe for ReachabilityError<Key>where
Key: RefUnwindSafe,
impl<Key> Send for ReachabilityError<Key>where
Key: Send,
impl<Key> Sync for ReachabilityError<Key>where
Key: Sync,
impl<Key> Unpin for ReachabilityError<Key>where
Key: Unpin,
impl<Key> UnsafeUnpin for ReachabilityError<Key>where
Key: UnsafeUnpin,
impl<Key> UnwindSafe for ReachabilityError<Key>where
Key: UnwindSafe,
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