pub struct ProfileManager { /* private fields */ }Expand description
Manages a collection of profiles
Implementations§
Source§impl ProfileManager
impl ProfileManager
Sourcepub fn new() -> ProfileManager
pub fn new() -> ProfileManager
Create a new empty profile manager
Sourcepub fn from_profiles(profiles: Vec<Profile>) -> ProfileManager
pub fn from_profiles(profiles: Vec<Profile>) -> ProfileManager
Create a profile manager from a list of profiles
Sourcepub fn get_mut(&mut self, id: &Uuid) -> Option<&mut Profile>
pub fn get_mut(&mut self, id: &Uuid) -> Option<&mut Profile>
Get a mutable reference to a profile by ID
Sourcepub fn profiles_ordered(&self) -> Vec<&Profile>
pub fn profiles_ordered(&self) -> Vec<&Profile>
Get all profiles in display order
Sourcepub fn find_by_name(&self, name: &str) -> Option<&Profile>
pub fn find_by_name(&self, name: &str) -> Option<&Profile>
Find a profile by name (case-insensitive)
Sourcepub fn find_by_shortcut(&self, shortcut: &str) -> Option<&Profile>
pub fn find_by_shortcut(&self, shortcut: &str) -> Option<&Profile>
Find a profile by keyboard shortcut
Sourcepub fn find_by_tag(&self, tag: &str) -> Vec<&Profile>
pub fn find_by_tag(&self, tag: &str) -> Vec<&Profile>
Find all profiles with a specific tag (case-insensitive)
Filter profiles by tag search query (matches partial tag names)
Get all unique tags across all profiles (sorted alphabetically)
Sourcepub fn find_by_hostname(&self, hostname: &str) -> Option<&Profile>
pub fn find_by_hostname(&self, hostname: &str) -> Option<&Profile>
Find profile matching a hostname pattern for automatic switching Uses glob-style pattern matching
Sourcepub fn find_by_tmux_session(&self, session_name: &str) -> Option<&Profile>
pub fn find_by_tmux_session(&self, session_name: &str) -> Option<&Profile>
Find profile matching a tmux session name pattern for automatic switching Uses glob-style pattern matching
Sourcepub fn find_by_directory(&self, cwd: &str) -> Option<&Profile>
pub fn find_by_directory(&self, cwd: &str) -> Option<&Profile>
Find profile matching a directory pattern for automatic switching based on CWD Uses glob-style pattern matching against the current working directory
Sourcepub fn resolve_profile(&self, id: &Uuid) -> Option<Profile>
pub fn resolve_profile(&self, id: &Uuid) -> Option<Profile>
Resolve a profile with inheritance - returns effective settings by merging parent profiles. Child values override parent values.
Sourcepub fn get_valid_parents(&self, profile_id: &Uuid) -> Vec<&Profile>
pub fn get_valid_parents(&self, profile_id: &Uuid) -> Vec<&Profile>
Get profiles that can be parents for a given profile (excludes the profile itself and any profiles that would create a cycle)
Trait Implementations§
Source§impl Clone for ProfileManager
impl Clone for ProfileManager
Source§fn clone(&self) -> ProfileManager
fn clone(&self) -> ProfileManager
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProfileManager
impl Debug for ProfileManager
Source§impl Default for ProfileManager
impl Default for ProfileManager
Source§fn default() -> ProfileManager
fn default() -> ProfileManager
Auto Trait Implementations§
impl Freeze for ProfileManager
impl RefUnwindSafe for ProfileManager
impl Send for ProfileManager
impl Sync for ProfileManager
impl Unpin for ProfileManager
impl UnsafeUnpin for ProfileManager
impl UnwindSafe for ProfileManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().