pub enum ErrorCode {
Show 13 variants
Unknown = 0,
InstanceNotFound = 1,
InstanceCorrupted = 2,
SpawnTty = 3,
SpawnTcp = 4,
HeaderParsing = 5,
InvalidRowsColsValueForTty = 6,
InvalidPort = 7,
WriteDataToServer = 8,
UnsupportedPlatform = 9,
UnexpectedOperation = 10,
ResizeTty = 11,
SpawnTtyCommand = 12,
}
Variants§
Unknown = 0
Unspecified error code.
InstanceNotFound = 1
Instance not found inside the hashmap.
InstanceCorrupted = 2
Cannot send the message to the instance. Maybe the instance is corrupted. It can happen when the instance’s channel is closed and instance is not removed from the hashmap.
SpawnTty = 3
Cannot spawn a tty.
SpawnTcp = 4
Cannot open desired port.
HeaderParsing = 5
Cannot parse the header of the message.
InvalidRowsColsValueForTty = 6
Cannot converse rows and columns value for the tty. It should be a u16 value (0-65535).
InvalidPort = 7
Invalid port number. It should be a u16 value (0-65535).
WriteDataToServer = 8
Cannot send the payload to the server.
UnsupportedPlatform = 9
Non unix platform are not supported for tty feature.
UnexpectedOperation = 10
Unexpected operation received from the cloud. It could be an error or a status message which is not expected in the current context.
ResizeTty = 11
Resize TTY operation failed.
SpawnTtyCommand = 12
Spawn command failed.
Trait Implementations§
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
Mutably borrows from an owned value. Read more