[][src]Enum mssql_browser::BrowserProtocolError

pub enum BrowserProtocolError {
    UnexpectedToken {
        expected: BrowserProtocolToken,
        found: BrowserProtocolToken,
    },
    LengthMismatch {
        datagram: usize,
        header: usize,
    },
    InvalidUtf8(Utf8Error),
    ExtraneousData(Vec<u8>),
}

Received an unexpected response from the server

Variants

UnexpectedToken

An unexpected token was received from the server

Fields of UnexpectedToken

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 of LengthMismatch

datagram: usize

The size, in bytes, of the datagram

header: usize

The size, in bytes, specified in the packet header

InvalidUtf8(Utf8Error)

Unexpected MBCS string encoding found in the received message

ExtraneousData(Vec<u8>)

There was extraneous data after the parsed message

Trait Implementations

impl Debug for BrowserProtocolError[src]

impl Display for BrowserProtocolError[src]

impl Error for BrowserProtocolError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.