Skip to main content

TokenInterface

Trait TokenInterface 

Source
pub trait TokenInterface: 'static {
    // Required methods
    fn get_node(&self) -> TokenTarget;
    fn get_rights(&self) -> Rights;
    fn token_registry(&self) -> &TokenRegistry;
}

Required Methods§

Source

fn get_node(&self) -> TokenTarget

Returns the node that corresponds with this token. This information is returned by the get_owner method.

Source

fn get_rights(&self) -> Rights

Returns the rights of the connection this token is associated with.

Source

fn token_registry(&self) -> &TokenRegistry

Returns the token registry.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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