pub struct ConditionEvent {
pub message: String,
pub origin: Option<ComponentId>,
pub target: Option<ComponentId>,
pub evidence: Vec<DependencyEvidence>,
pub cycle: Vec<ComponentId>,
pub help: Option<String>,
}Fields§
§message: String§origin: Option<ComponentId>§target: Option<ComponentId>§evidence: Vec<DependencyEvidence>§cycle: Vec<ComponentId>§help: Option<String>Implementations§
Source§impl ConditionEvent
impl ConditionEvent
pub fn new(message: impl Into<String>) -> Self
pub fn with_edge( self, origin: ComponentId, target: ComponentId, evidence: Vec<DependencyEvidence>, ) -> Self
pub fn with_cycle(self, cycle: Vec<ComponentId>) -> Self
pub fn with_help(self, help: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ConditionEvent
impl Clone for ConditionEvent
Source§fn clone(&self) -> ConditionEvent
fn clone(&self) -> ConditionEvent
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 Debug for ConditionEvent
impl Debug for ConditionEvent
Source§impl Default for ConditionEvent
impl Default for ConditionEvent
Source§fn default() -> ConditionEvent
fn default() -> ConditionEvent
Returns the “default value” for a type. Read more
impl Eq for ConditionEvent
Source§impl PartialEq for ConditionEvent
impl PartialEq for ConditionEvent
impl StructuralPartialEq for ConditionEvent
Auto Trait Implementations§
impl Freeze for ConditionEvent
impl RefUnwindSafe for ConditionEvent
impl Send for ConditionEvent
impl Sync for ConditionEvent
impl Unpin for ConditionEvent
impl UnsafeUnpin for ConditionEvent
impl UnwindSafe for ConditionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.