pub enum ActrError {
InvalidFormat(String),
InvalidComponent(String),
InvalidTypeFormat(String),
DecodeFailure {
message: String,
},
UnknownRoute {
route_key: String,
},
GateNotInitialized {
message: String,
},
NotImplemented {
feature: String,
},
PermissionDenied {
message: String,
},
DependencyNotFound {
service_name: String,
message: String,
},
}Expand description
Errors for actor identity parsing and formatting
Variants§
InvalidFormat(String)
InvalidComponent(String)
InvalidTypeFormat(String)
DecodeFailure
消息解码失败
UnknownRoute
未知的路由键
GateNotInitialized
OutGate 尚未初始化
NotImplemented
Feature not yet implemented
PermissionDenied
ACL 权限拒绝
DependencyNotFound
依赖未找到 - Actr.lock.toml 中不存在该依赖
Trait Implementations§
Source§impl Error for ActrError
impl Error for ActrError
1.30.0 · 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<ActrError> for ProtocolError
impl From<ActrError> for ProtocolError
impl Eq for ActrError
impl StructuralPartialEq for ActrError
Auto Trait Implementations§
impl Freeze for ActrError
impl RefUnwindSafe for ActrError
impl Send for ActrError
impl Sync for ActrError
impl Unpin for ActrError
impl UnwindSafe for ActrError
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