pub enum TheaterRuntimeError {
ActorNotFound(TheaterId),
ActorAlreadyExists(TheaterId),
ActorNotRunning(TheaterId),
ActorOperationFailed(String),
ActorError(ActorError),
ChannelError(String),
ChannelNotFound(String),
ChannelRejected,
SerializationError(String),
ActorInitializationError(String),
InternalError(String),
}Expand description
§Theater Runtime Error
Represents specific error conditions that can occur in the Theater runtime system. These structured errors allow for better error handling and provide more context about what went wrong.
Variants§
ActorNotFound(TheaterId)
Actor not found in the runtime
ActorAlreadyExists(TheaterId)
Actor already exists with the given ID
ActorNotRunning(TheaterId)
Actor exists but is not in running state
ActorOperationFailed(String)
Actor operation failed
ActorError(ActorError)
Error from within an actor
ChannelError(String)
Error with communication channels
ChannelNotFound(String)
Channel not found
ChannelRejected
Channel rejected by target
SerializationError(String)
Error with serialization/deserialization
ActorInitializationError(String)
Error during actor initialization
InternalError(String)
Internal runtime error
Implementations§
Source§impl TheaterRuntimeError
impl TheaterRuntimeError
pub fn from_error<E: Error + 'static>(error: E) -> Self
Trait Implementations§
Source§impl Clone for TheaterRuntimeError
impl Clone for TheaterRuntimeError
Source§fn clone(&self) -> TheaterRuntimeError
fn clone(&self) -> TheaterRuntimeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TheaterRuntimeError
impl Debug for TheaterRuntimeError
Source§impl Display for TheaterRuntimeError
impl Display for TheaterRuntimeError
Source§impl Error for TheaterRuntimeError
impl Error for TheaterRuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ActorError> for TheaterRuntimeError
impl From<ActorError> for TheaterRuntimeError
Source§fn from(source: ActorError) -> Self
fn from(source: ActorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TheaterRuntimeError
impl RefUnwindSafe for TheaterRuntimeError
impl Send for TheaterRuntimeError
impl Sync for TheaterRuntimeError
impl Unpin for TheaterRuntimeError
impl UnsafeUnpin for TheaterRuntimeError
impl UnwindSafe for TheaterRuntimeError
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> 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> IntoAnyhow for T
impl<T> IntoAnyhow for T
Source§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
Converts
self into an anyhow::Error.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