Skip to main content

Profiles

Trait Profiles 

Source
pub trait Profiles {
    // Required methods
    fn name_of(&self, id: &str) -> Option<String>;
    fn id_of(&self, name: &str) -> Option<String>;
}
Expand description

The person’s browser profiles of one machine, by id and by name.

Required Methods§

Source

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

The name of the person’s profile id; None for an agent’s own profile and for one that does not exist.

Source

fn id_of(&self, name: &str) -> Option<String>

The id of the person’s profile called name (the same name in any case), if this machine has one.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Profiles for Known<'_>