pub struct PersonaApi { /* private fields */ }Expand description
Persona management system calls.
Implementations§
Source§impl PersonaApi
impl PersonaApi
Sourcepub fn new(persona_manager: Arc<PersonaManager>) -> Self
pub fn new(persona_manager: Arc<PersonaManager>) -> Self
Create a new PersonaApi.
Sourcepub fn set_active(&self, id: &str) -> Result<()>
pub fn set_active(&self, id: &str) -> Result<()>
Set active persona.
Sourcepub fn list_enabled(&self) -> Vec<Persona>
pub fn list_enabled(&self) -> Vec<Persona>
List enabled personas.
Auto Trait Implementations§
impl !RefUnwindSafe for PersonaApi
impl !UnwindSafe for PersonaApi
impl Freeze for PersonaApi
impl Send for PersonaApi
impl Sync for PersonaApi
impl Unpin for PersonaApi
impl UnsafeUnpin for PersonaApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more