pub struct CcsAliasResolver { /* private fields */ }Expand description
CCS alias resolver that can be used by the agent registry.
Implementations§
Source§impl CcsAliasResolver
impl CcsAliasResolver
Sourcepub const fn new(
aliases: HashMap<String, CcsAliasConfig>,
defaults: CcsConfig,
) -> Self
pub const fn new( aliases: HashMap<String, CcsAliasConfig>, defaults: CcsConfig, ) -> Self
Create a new CCS alias resolver with the given aliases.
Sourcepub fn try_resolve(&self, agent_name: &str) -> Option<AgentConfig>
pub fn try_resolve(&self, agent_name: &str) -> Option<AgentConfig>
Try to resolve an agent name as a CCS reference.
Returns Some(AgentConfig) if the name is a valid CCS reference.
For known aliases (or default ccs), uses the configured command.
For unknown aliases (e.g., ccs/random), generates a default CCS config
to allow direct CCS execution without configuration.
Returns None if the name is not a CCS reference (doesn’t start with “ccs”).
Trait Implementations§
Source§impl Clone for CcsAliasResolver
impl Clone for CcsAliasResolver
Source§fn clone(&self) -> CcsAliasResolver
fn clone(&self) -> CcsAliasResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CcsAliasResolver
impl Debug for CcsAliasResolver
Source§impl Default for CcsAliasResolver
impl Default for CcsAliasResolver
Source§fn default() -> CcsAliasResolver
fn default() -> CcsAliasResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CcsAliasResolver
impl RefUnwindSafe for CcsAliasResolver
impl Send for CcsAliasResolver
impl Sync for CcsAliasResolver
impl Unpin for CcsAliasResolver
impl UnsafeUnpin for CcsAliasResolver
impl UnwindSafe for CcsAliasResolver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 more