pub enum RemoteError {
ProtocolError {
message: String,
},
VersionMismatch {
client_version: String,
server_version: String,
},
NotFound {
resource: String,
},
PermissionDenied {
reason: String,
},
QueueFull {
queue_name: String,
},
InternalError {
message: String,
},
TooManySubscriptions {
limit: usize,
},
NoValue {
record_name: String,
},
NoBuffer {
record_name: String,
},
ValidationError {
message: String,
},
AuthRequired,
AuthFailed,
}Expand description
Error type for remote access operations
Variants§
ProtocolError
Malformed message or invalid JSON
VersionMismatch
Incompatible protocol versions
NotFound
Record or subscription not found
PermissionDenied
Operation not permitted
QueueFull
Subscription queue overflow
InternalError
Server internal error
TooManySubscriptions
Too many subscriptions for this client
NoValue
Record has no current value
NoBuffer
Record has no buffer configured
ValidationError
Invalid parameter or value
AuthRequired
Authentication token required
AuthFailed
Invalid authentication token
Implementations§
Source§impl RemoteError
impl RemoteError
Trait Implementations§
Source§impl Clone for RemoteError
impl Clone for RemoteError
Source§fn clone(&self) -> RemoteError
fn clone(&self) -> RemoteError
Returns a duplicate of the value. Read more
1.0.0 · 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 RemoteError
impl Debug for RemoteError
Source§impl Display for RemoteError
impl Display for RemoteError
Source§impl Error for RemoteError
impl Error for RemoteError
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<DbError> for RemoteError
impl From<DbError> for RemoteError
Source§impl From<Error> for RemoteError
impl From<Error> for RemoteError
Auto Trait Implementations§
impl Freeze for RemoteError
impl RefUnwindSafe for RemoteError
impl Send for RemoteError
impl Sync for RemoteError
impl Unpin for RemoteError
impl UnwindSafe for RemoteError
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