pub struct BarrierKey {
pub itinerary: ItineraryId,
pub to: AgentName,
}Expand description
Identifies a barrier within the Tower.
Fields§
§itinerary: ItineraryIdThe chain the barrier belongs to.
to: AgentNameThe agent being guarded.
Implementations§
Source§impl BarrierKey
impl BarrierKey
Sourcepub fn new(itinerary: ItineraryId, to: AgentName) -> Self
pub fn new(itinerary: ItineraryId, to: AgentName) -> Self
Builds a key.
Trait Implementations§
Source§impl Clone for BarrierKey
impl Clone for BarrierKey
Source§impl Debug for BarrierKey
impl Debug for BarrierKey
impl Eq for BarrierKey
Source§impl Hash for BarrierKey
impl Hash for BarrierKey
Source§impl Ord for BarrierKey
impl Ord for BarrierKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BarrierKey
impl PartialEq for BarrierKey
Source§impl PartialOrd for BarrierKey
impl PartialOrd for BarrierKey
impl StructuralPartialEq for BarrierKey
Auto Trait Implementations§
impl Freeze for BarrierKey
impl RefUnwindSafe for BarrierKey
impl Send for BarrierKey
impl Sync for BarrierKey
impl Unpin for BarrierKey
impl UnsafeUnpin for BarrierKey
impl UnwindSafe for BarrierKey
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