Trait TokenInterface

Source
pub trait TokenInterface: 'static {
    // Required methods
    fn get_node(&self) -> Arc<dyn MutableDirectory>;
    fn token_registry(&self) -> &TokenRegistry;
}

Required Methods§

Source

fn get_node(&self) -> Arc<dyn MutableDirectory>

Returns the node and flags that correspond with this token. This information is returned by the get_owner method. For now this always returns Arc but it should be possible to change this so that files can be represented in future if and when the need arises.

Source

fn token_registry(&self) -> &TokenRegistry

Returns the token registry.

Implementors§

Source§

impl<DirectoryType: MutableDirectory> TokenInterface for MutableConnection<DirectoryType>