pub enum BrowserProtocolError {
UnexpectedToken {
expected: BrowserProtocolToken,
found: BrowserProtocolToken,
},
LengthMismatch {
datagram: usize,
header: usize,
},
InvalidUtf8(Utf8Error),
ExtraneousData(Vec<u8>),
}
Expand description
Received an unexpected response from the server
Variants§
UnexpectedToken
An unexpected token was received from the server
Fields
§
expected: BrowserProtocolToken
The token that was expected at this location
§
found: BrowserProtocolToken
The token that was found
LengthMismatch
The length of the datagram does not match the length specified in the packet header.
Fields
InvalidUtf8(Utf8Error)
Unexpected MBCS string encoding found in the received message
ExtraneousData(Vec<u8>)
There was extraneous data after the parsed message
Trait Implementations§
Source§impl Debug for BrowserProtocolError
impl Debug for BrowserProtocolError
Source§impl Display for BrowserProtocolError
impl Display for BrowserProtocolError
Source§impl Error for BrowserProtocolError
impl Error for BrowserProtocolError
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()
Auto Trait Implementations§
impl Freeze for BrowserProtocolError
impl RefUnwindSafe for BrowserProtocolError
impl Send for BrowserProtocolError
impl Sync for BrowserProtocolError
impl Unpin for BrowserProtocolError
impl UnwindSafe for BrowserProtocolError
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