#[repr(u8)]pub enum MythicError {
Show 31 variants
Serialize = 1,
Deserialize = 2,
Base64 = 3,
Utf8 = 4,
InvalidPacket = 5,
InvalidUuid = 6,
UuidMismatch = 7,
Crypto = 8,
Timeout = 9,
ConnectionFailed = 10,
DnsFailed = 11,
TlsFailed = 12,
HttpStatus(u16),
ServerError(u16),
AuthFailed = 15,
ServerRejected = 16,
NotCheckedIn = 17,
PayloadTooLarge = 18,
KeyExchangeFailed = 19,
RateLimited = 20,
CommandNotFound = 21,
InvalidTaskData = 22,
TaskTimeout = 23,
ResourceExhausted = 24,
PermissionDenied = 25,
ProcessFailed = 26,
IoFailed = 27,
Transport(String),
Protocol(String),
Task(String),
Runtime(String),
}Expand description
Unified error covering the full C2 agent lifecycle.
§Error codes
| Code | Variant | Category |
|---|---|---|
| 1 | Serialize | Codec |
| 2 | Deserialize | Codec |
| 3 | Base64 | Codec |
| 4 | Utf8 | Codec |
| 5 | InvalidPacket | Codec |
| 6 | InvalidUuid | Codec |
| 7 | UuidMismatch | Codec |
| 8 | Crypto | Crypto |
| 9 | Timeout | Transport |
| 10 | ConnectionFailed | Transport |
| 11 | DnsFailed | Transport |
| 12 | TlsFailed | Transport |
| 13 | HttpStatus(u16) | Transport |
| 14 | ServerError(u16) | Transport |
| 15 | AuthFailed | Protocol |
| 16 | ServerRejected | Protocol |
| 17 | NotCheckedIn | Protocol |
| 18 | PayloadTooLarge | Protocol |
| 19 | KeyExchangeFailed | Protocol |
| 20 | RateLimited | Protocol |
| 21 | CommandNotFound | Task |
| 22 | InvalidTaskData | Task |
| 23 | TaskTimeout | Task |
| 24 | ResourceExhausted | Runtime |
| 25 | PermissionDenied | Runtime |
| 26 | ProcessFailed | Runtime |
| 27 | IoFailed | Runtime |
| 28 | Transport | Fallback |
| 29 | Protocol | Fallback |
| 30 | Task | Fallback |
| 31 | Runtime | Fallback |
Variants§
Serialize = 1
Deserialize = 2
Base64 = 3
Utf8 = 4
InvalidPacket = 5
InvalidUuid = 6
UuidMismatch = 7
Crypto = 8
Timeout = 9
ConnectionFailed = 10
DnsFailed = 11
TlsFailed = 12
HttpStatus(u16)
ServerError(u16)
AuthFailed = 15
ServerRejected = 16
NotCheckedIn = 17
PayloadTooLarge = 18
KeyExchangeFailed = 19
RateLimited = 20
CommandNotFound = 21
InvalidTaskData = 22
TaskTimeout = 23
ResourceExhausted = 24
PermissionDenied = 25
ProcessFailed = 26
IoFailed = 27
Transport(String)
Protocol(String)
Task(String)
Runtime(String)
Implementations§
Source§impl MythicError
impl MythicError
Trait Implementations§
Source§impl Clone for MythicError
impl Clone for MythicError
Source§fn clone(&self) -> MythicError
fn clone(&self) -> MythicError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MythicError
impl Debug for MythicError
Source§impl Display for MythicError
impl Display for MythicError
Source§impl PartialEq for MythicError
impl PartialEq for MythicError
Source§fn eq(&self, other: &MythicError) -> bool
fn eq(&self, other: &MythicError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MythicError
impl StructuralPartialEq for MythicError
Auto Trait Implementations§
impl Freeze for MythicError
impl RefUnwindSafe for MythicError
impl Send for MythicError
impl Sync for MythicError
impl Unpin for MythicError
impl UnsafeUnpin for MythicError
impl UnwindSafe for MythicError
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