#[repr(i8)]pub enum ErrorCode {
Show 30 variants
OK = 0,
EINTERNAL = -1,
EARGS = -2,
EAGAIN = -3,
ERATELIMIT = -4,
EFAILED = -5,
ETOOMANY = -6,
ERANGE = -7,
EEXPIRED = -8,
ENOENT = -9,
ECIRCULAR = -10,
EACCESS = -11,
EEXIST = -12,
EINCOMPLETE = -13,
EKEY = -14,
ESID = -15,
EBLOCKED = -16,
EOVERQUOTA = -17,
ETEMPUNAVAIL = -18,
ETOOMANYCONNECTIONS = -19,
EWRITE = -20,
EREAD = -21,
EAPPKEY = -22,
ESSL = -23,
EGOINGOVERQUOTA = -24,
EMFAREQUIRED = -26,
EMASTERONLY = -27,
EBUSINESSPASTDUE = -28,
EPAYWALL = -29,
UNKNOWN = 1,
}Expand description
Error code originating from MEGA’s API.
Variants§
OK = 0
Success
EINTERNAL = -1
Internal Error
EARGS = -2
Invalid arguments
EAGAIN = -3
Request failed (but may be retried)
ERATELIMIT = -4
Rate-limited
EFAILED = -5
Upload failed
ETOOMANY = -6
Too many IPs are trying to access this resource
ERANGE = -7
The file packet is out of range
EEXPIRED = -8
The upload target url has expired
ENOENT = -9
Object not found
ECIRCULAR = -10
Attempted circular link
EACCESS = -11
Access violation (like writing to a read-only share)
EEXIST = -12
Tried to create an object that already exists
EINCOMPLETE = -13
Tried to access an incomplete resource
EKEY = -14
A decryption operation failed
ESID = -15
Invalid or expired user session
EBLOCKED = -16
User blocked
EOVERQUOTA = -17
Request over quota
ETEMPUNAVAIL = -18
Resource temporarily unavailable
ETOOMANYCONNECTIONS = -19
Too many connections to this resource
EWRITE = -20
Write failed
EREAD = -21
Read failed
EAPPKEY = -22
Invalid App key
ESSL = -23
SSL verification failed
EGOINGOVERQUOTA = -24
Not enough quota
EMFAREQUIRED = -26
Need multifactor authentication
EMASTERONLY = -27
Access denied for sub-users (buisness accounts only)
EBUSINESSPASTDUE = -28
Business account expired
EPAYWALL = -29
Over Disk Quota Paywall
UNKNOWN = 1
Unknown error
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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>,
source§impl Error for ErrorCode
impl Error for ErrorCode
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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<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.