pub struct CycleError<K> {
pub from: K,
pub to: K,
pub channel: Channel,
}Expand description
Error returned when a cycle would be created by adding a dependency.
Fields§
§from: KThe key that would depend on another.
to: KThe key that would be depended upon.
channel: ChannelThe channel where the cycle would occur.
Trait Implementations§
Source§impl<K: Clone> Clone for CycleError<K>
impl<K: Clone> Clone for CycleError<K>
Source§fn clone(&self) -> CycleError<K>
fn clone(&self) -> CycleError<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug> Debug for CycleError<K>
impl<K: Debug> Debug for CycleError<K>
Source§impl<K: Debug> Display for CycleError<K>
impl<K: Debug> Display for CycleError<K>
Source§impl<K: Debug> Error for CycleError<K>
impl<K: Debug> Error for CycleError<K>
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()
Source§impl<K: PartialEq> PartialEq for CycleError<K>
impl<K: PartialEq> PartialEq for CycleError<K>
impl<K: Eq> Eq for CycleError<K>
impl<K> StructuralPartialEq for CycleError<K>
Auto Trait Implementations§
impl<K> Freeze for CycleError<K>where
K: Freeze,
impl<K> RefUnwindSafe for CycleError<K>where
K: RefUnwindSafe,
impl<K> Send for CycleError<K>where
K: Send,
impl<K> Sync for CycleError<K>where
K: Sync,
impl<K> Unpin for CycleError<K>where
K: Unpin,
impl<K> UnsafeUnpin for CycleError<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for CycleError<K>where
K: 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