pub trait TokenInterface: 'static {
// Required methods
fn get_node(&self) -> Arc<dyn MutableDirectory>;
fn get_rights(&self) -> Rights;
fn token_registry(&self) -> &TokenRegistry;
}Required Methods§
Sourcefn get_node(&self) -> Arc<dyn MutableDirectory>
fn get_node(&self) -> Arc<dyn MutableDirectory>
Returns the node that corresponds with this token. This information is returned by the
get_owner method. For now this always returns Arc
Sourcefn get_rights(&self) -> Rights
fn get_rights(&self) -> Rights
Returns the rights of the connection this token is associated with.
Sourcefn token_registry(&self) -> &TokenRegistry
fn token_registry(&self) -> &TokenRegistry
Returns the token registry.