pub enum RemoteProtocolError {
Show 15 variants
UnsupportedProtocolVersion {
actual: u32,
expected: u32,
},
MismatchedNestedProtocolVersion {
parent: &'static str,
child: &'static str,
parent_version: u32,
child_version: u32,
},
MissingRequiredField {
type_name: &'static str,
field: &'static str,
},
InvalidEnvelope {
type_name: &'static str,
message: String,
},
InvalidImageBlob {
id: String,
message: String,
},
InvalidAttachmentRef {
id: String,
message: String,
},
NonRemoteSafeTurnInput(String),
MissingToolSurface {
tool_name: String,
},
InvalidToolGrant {
tool_name: String,
message: String,
},
DuplicateRemoteCallPath {
call_path: String,
},
RemoteToolRegistryReopenMismatch {
before_call_paths: Vec<String>,
after_call_paths: Vec<String>,
},
UnknownRemoteTool {
tool_name: String,
},
RemoteToolTransport(String),
ActivitySerialization(Error),
ActivityWrite(String),
}Variants§
UnsupportedProtocolVersion
MismatchedNestedProtocolVersion
MissingRequiredField
InvalidEnvelope
InvalidImageBlob
InvalidAttachmentRef
NonRemoteSafeTurnInput(String)
MissingToolSurface
InvalidToolGrant
DuplicateRemoteCallPath
RemoteToolRegistryReopenMismatch
UnknownRemoteTool
RemoteToolTransport(String)
ActivitySerialization(Error)
ActivityWrite(String)
Trait Implementations§
Source§impl Debug for RemoteProtocolError
impl Debug for RemoteProtocolError
Source§impl Display for RemoteProtocolError
impl Display for RemoteProtocolError
Source§impl Error for RemoteProtocolError
impl Error for RemoteProtocolError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteProtocolError
impl !UnwindSafe for RemoteProtocolError
impl Freeze for RemoteProtocolError
impl Send for RemoteProtocolError
impl Sync for RemoteProtocolError
impl Unpin for RemoteProtocolError
impl UnsafeUnpin for RemoteProtocolError
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