pub struct Reachability {
pub records: HashMap<(Address, Address), ReachabilityStatus>,
}Fields§
§records: HashMap<(Address, Address), ReachabilityStatus>Implementations§
Source§impl Reachability
impl Reachability
pub fn new() -> Self
pub fn unreachable(&mut self, observer: Address, subject: Address)
pub fn reachable(&mut self, observer: Address, subject: Address)
pub fn terminated(&mut self, observer: Address, subject: Address)
pub fn status(&self, subject: &Address) -> ReachabilityStatus
pub fn is_reachable(&self, subject: &Address) -> bool
Trait Implementations§
Source§impl Clone for Reachability
impl Clone for Reachability
Source§fn clone(&self) -> Reachability
fn clone(&self) -> Reachability
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 Debug for Reachability
impl Debug for Reachability
Source§impl Default for Reachability
impl Default for Reachability
Source§fn default() -> Reachability
fn default() -> Reachability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Reachability
impl<'de> Deserialize<'de> for Reachability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Reachability
impl RefUnwindSafe for Reachability
impl Send for Reachability
impl Sync for Reachability
impl Unpin for Reachability
impl UnsafeUnpin for Reachability
impl UnwindSafe for Reachability
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