#[non_exhaustive]pub enum RpcError {
NotFound,
Denied,
Internal,
VersionMismatch,
}Expand description
Dispatch-layer (application) failure for call / subscribe / write.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound
No such method or topic.
Denied
The caller lacks permission for this operation.
Internal
The handler failed.
VersionMismatch
The peer’s declared protocol version is incompatible with this server’s
PROTOCOL_VERSION. Raised at the handshake, before hello completes.
Trait Implementations§
impl Eq for RpcError
impl StructuralPartialEq for RpcError
Auto Trait Implementations§
impl Freeze for RpcError
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnsafeUnpin for RpcError
impl UnwindSafe for RpcError
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