#[non_exhaustive]pub enum RpcErrorCode {
NotFound,
InvalidConfig,
SpawnFailed,
ProtocolMismatch,
Internal,
DeadlineExceeded,
Unsupported,
Unrecognized,
}Expand description
Machine-readable RPC error codes
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotFound
Selector matched nothing
InvalidConfig
Config failed validation daemon-side
SpawnFailed
Spawn failed (exec error, permissions)
ProtocolMismatch
Handshake protocol version mismatch
Internal
Unexpected daemon-side failure
DeadlineExceeded
The request’s deadline expired before the daemon finished it
Unsupported
The peer asked for something this build does not implement.
Distinct from NotFound, which means a selector matched nothing.
This means the verb itself is unknown here, and the remedy is a
newer shepherd rather than a different selector.
Unrecognized
A code this build has not been taught.
Only ever produced by decoding: an unrecognized string falls through
to this variant via #[serde(other)] instead of failing the whole
frame. Nothing constructs one to send, which is a call-site
invariant rather than a type-level one: #[serde(other)] governs
decoding only, so serializing this would emit "unrecognized".
Implementations§
Source§impl RpcErrorCode
impl RpcErrorCode
Trait Implementations§
Source§impl Clone for RpcErrorCode
impl Clone for RpcErrorCode
Source§fn clone(&self) -> RpcErrorCode
fn clone(&self) -> RpcErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RpcErrorCode
Source§impl Debug for RpcErrorCode
impl Debug for RpcErrorCode
Source§impl<'de> Deserialize<'de> for RpcErrorCode
impl<'de> Deserialize<'de> for RpcErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RpcErrorCode
Source§impl PartialEq for RpcErrorCode
impl PartialEq for RpcErrorCode
Source§impl Serialize for RpcErrorCode
impl Serialize for RpcErrorCode
impl StructuralPartialEq for RpcErrorCode
Auto Trait Implementations§
impl Freeze for RpcErrorCode
impl RefUnwindSafe for RpcErrorCode
impl Send for RpcErrorCode
impl Sync for RpcErrorCode
impl Unpin for RpcErrorCode
impl UnsafeUnpin for RpcErrorCode
impl UnwindSafe for RpcErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.