Enum tramex_tools::errors::ErrorCode
source · pub enum ErrorCode {
Show 18 variants
NotSet = 0,
WebSocketFailedToConnect = 1,
WebSocketErrorEncodingMessage = 2,
WebSocketErrorDecodingMessage = 3,
WebSocketUnknownMessageReceived = 4,
WebSocketUnknownBinaryMessageReceived = 5,
WebSocketError = 6,
WebSocketClosed = 7,
WebSocketErrorClosing = 8,
FileNotSelected = 9,
FileErrorReadingFile = 10,
FileNotReady = 11,
FileInvalidEncoding = 12,
HexeDecodingError = 13,
EndOfFile = 14,
FileParsing = 15,
RequestError = 16,
ParsingLayerNotImplemented = 17,
}
Expand description
Error codes for Tramex Tools
Variants§
NotSet = 0
Not set
WebSocketFailedToConnect = 1
WebSocket: Failed to connect
WebSocketErrorEncodingMessage = 2
WebSocket: Error encoding message
WebSocketErrorDecodingMessage = 3
WebSocket: Error decoding message
WebSocketUnknownMessageReceived = 4
WebSocket: Unknown message received
WebSocketUnknownBinaryMessageReceived = 5
WebSocket: Unknown binary message received
WebSocketError = 6
WebSocket: Error
WebSocketClosed = 7
WebSocket: Closed
WebSocketErrorClosing = 8
WebSocket: Error closing
FileNotSelected = 9
File: No file selected
FileErrorReadingFile = 10
File: Error reading file
FileNotReady = 11
File: Not ready
FileInvalidEncoding = 12
File: Invalid encoding (wrong UTF-8)
HexeDecodingError = 13
Hexe decoding failed
EndOfFile = 14
File : End of the file
FileParsing = 15
File: Error while parsing the file
RequestError = 16
Request error
ParsingLayerNotImplemented = 17
ParsingLayerNotImplemented
Implementations§
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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