Skip to main content

LinkOwners

Trait LinkOwners 

Source
pub trait LinkOwners {
    // Required methods
    fn owner_of(&self, id: &str) -> Option<String>;
    fn retired(&self, id: &str) -> bool;
}
Expand description

What the store knows of link ids, besides this entry’s own.

Required Methods§

Source

fn owner_of(&self, id: &str) -> Option<String>

The entry that holds id here now, if any.

Source

fn retired(&self, id: &str) -> bool

Whether id once named an entry that has been removed. A removed entry’s ids are kept for good for this.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl LinkOwners for Store

The store as the one that knows which entry holds an id. A store that cannot answer is taken to hold the id, so an id is never given away on a failed read.