pub enum AgentError {
Show 36 variants
InvalidArrayValue(String),
InvalidDefinition(String, String),
InvalidPin(String),
InvalidPresetName(String),
InvalidValue(String),
MissingDefinition(String, String),
RenamePresetFailed(String),
UnknownDefKind(String),
UnknownDefName(String),
NotImplemented(String),
AgentAlreadyExists(String),
AgentCreationFailed(String),
AgentNotFound(String),
SourceAgentNotFound(String),
DuplicateId(String),
EmptySourceHandle,
EmptyTargetHandle,
ConnectionAlreadyExists,
ConnectionNotFound(String),
PresetNotFound(String),
AgentDefinitionNotFound(String),
AgentTxNotFound(String),
SendMessageFailed(String),
SerializationError(String),
TxNotInitialized,
IoError(String),
JsonParseError(String),
InvalidFileExtension,
EmptyFileName,
FileSystemError,
InvalidConfig(String),
NoConfig,
UnknownConfig(String),
NoGlobalConfig,
PinNotFound(String),
Other(String),
}Expand description
Errors that occur during agent operations.
Errors are categorized into:
-
Configuration errors:
InvalidConfig,UnknownConfig,NoConfig -
Value errors:
InvalidValue,InvalidArrayValue -
Agent management errors:
AgentNotFound,AgentAlreadyExists -
Connection errors:
ConnectionNotFound,ConnectionAlreadyExists -
I/O errors:
IoError,SerializationError,JsonParseError -
設定エラー:
InvalidConfig,UnknownConfig,NoConfig -
値エラー:
InvalidValue,InvalidArrayValue -
エージェント管理エラー:
AgentNotFound,AgentAlreadyExists -
接続エラー:
ConnectionNotFound,ConnectionAlreadyExists -
I/Oエラー:
IoError,SerializationError,JsonParseError
Variants§
InvalidArrayValue(String)
Invalid value in an array element.
InvalidDefinition(String, String)
Agent definition is invalid.
InvalidPin(String)
Invalid port name.
InvalidPresetName(String)
Invalid preset name.
InvalidValue(String)
Invalid value for the expected type.
MissingDefinition(String, String)
Agent definition is missing a required field.
RenamePresetFailed(String)
Failed to rename a preset.
UnknownDefKind(String)
Unknown agent definition kind.
UnknownDefName(String)
Unknown agent definition name.
NotImplemented(String)
Agent definition is not implemented.
AgentAlreadyExists(String)
An agent with this ID already exists.
AgentCreationFailed(String)
Failed to create an agent.
AgentNotFound(String)
Agent with the specified ID was not found.
SourceAgentNotFound(String)
Source agent in a connection was not found.
DuplicateId(String)
Duplicate ID detected.
EmptySourceHandle
Connection source handle is empty.
EmptyTargetHandle
Connection target handle is empty.
ConnectionAlreadyExists
A connection between these ports already exists.
ConnectionNotFound(String)
Connection with the specified ID was not found.
PresetNotFound(String)
Preset with the specified name was not found.
AgentDefinitionNotFound(String)
Agent definition was not found.
AgentTxNotFound(String)
Agent message sender was not found.
SendMessageFailed(String)
Failed to send a message to an agent.
SerializationError(String)
Serialization or deserialization error.
TxNotInitialized
Message sender is not initialized.
IoError(String)
I/O error.
JsonParseError(String)
JSON parsing error.
InvalidFileExtension
Invalid file extension (expected JSON).
EmptyFileName
File name is empty.
FileSystemError
Failed to get file stem from path.
InvalidConfig(String)
Invalid configuration value.
NoConfig
No configuration is available for this agent.
UnknownConfig(String)
Configuration key does not exist.
NoGlobalConfig
No global configuration is available.
PinNotFound(String)
Port (pin) was not found.
Other(String)
Generic agent error.
Trait Implementations§
Source§impl Clone for AgentError
impl Clone for AgentError
Source§fn clone(&self) -> AgentError
fn clone(&self) -> AgentError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentError
impl Debug for AgentError
Source§impl Display for AgentError
impl Display for AgentError
Source§impl Error for AgentError
impl Error for AgentError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AgentError> for AgentValue
impl From<AgentError> for AgentValue
Source§fn from(value: AgentError) -> Self
fn from(value: AgentError) -> Self
Auto Trait Implementations§
impl Freeze for AgentError
impl RefUnwindSafe for AgentError
impl Send for AgentError
impl Sync for AgentError
impl Unpin for AgentError
impl UnsafeUnpin for AgentError
impl UnwindSafe for AgentError
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
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, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more