[][src]Enum mssql_browser::BrowserError

pub enum BrowserError<SFError: Error = <DefaultSocketFactory as UdpSocketFactory>::Error, SError: Error = <<DefaultSocketFactory as UdpSocketFactory>::Socket as UdpSocket>::Error> {
    BindFailed(SFError),
    SetBroadcastFailed(SError),
    SendFailed(SocketAddr, SError),
    ConnectFailed(SocketAddr, SError),
    ReceiveFailed(SError),
    InstanceNameTooLong,
    ProtocolError(BrowserProtocolError),
}

An error that can be returned from the different browser operations

Variants

BindFailed(SFError)

The underlying tokio::net::UdpSocket failed to bind.

SetBroadcastFailed(SError)

Enabling the broadcast option on the tokio::net::UdpSocket failed.

SendFailed(SocketAddr, SError)

Sending the request datagram failed.

ConnectFailed(SocketAddr, SError)

Locking the tokio::net::UdpSocket to a specific endpoint via tokio::net::UdpSocket::connect failed.

ReceiveFailed(SError)

Receiving a datagram failed.

InstanceNameTooLong

The given instance name is too long.

ProtocolError(BrowserProtocolError)

The server send back an invalid response.

Trait Implementations

impl<SFError: Error, SError: Error> Debug for BrowserError<SFError, SError>[src]

impl<SFError: Error, SError: Error> Display for BrowserError<SFError, SError>[src]

impl<SFError: Error, SError: Error> Error for BrowserError<SFError, SError>[src]

Auto Trait Implementations

impl<SFError, SError> RefUnwindSafe for BrowserError<SFError, SError> where
    SError: RefUnwindSafe,
    SFError: RefUnwindSafe

impl<SFError, SError> Send for BrowserError<SFError, SError> where
    SError: Send,
    SFError: Send

impl<SFError, SError> Sync for BrowserError<SFError, SError> where
    SError: Sync,
    SFError: Sync

impl<SFError, SError> Unpin for BrowserError<SFError, SError> where
    SError: Unpin,
    SFError: Unpin

impl<SFError, SError> UnwindSafe for BrowserError<SFError, SError> where
    SError: UnwindSafe,
    SFError: UnwindSafe

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.