[−][src]Enum ws_stream_wasm::error::ErrorKind
The different kind of errors that can happen when you use the ws_stream
API.
Variants
Invalid input to WsState::try_from( u16 )
Fields of InvalidWsState
supplied: u16
The user supplied value that is in valid
When trying to send and WsState is anything but WsState::Open this error is returned. //
Browsers will forbid making websocket connections to certain ports. See this Stack Overflow question.
An invalid URL was given to WsStream::connect, please see: HTML Living Standard
Fields of InvalidUrl
supplied: String
The user supplied value that is in valid
An invalid close code was given to a close method. For valid close codes, please see: MDN Documentation
Fields of InvalidCloseCode
supplied: u16
The user supplied value that is in valid
The reason string given to a close method is longer than 123 bytes, please see: MDN Documentation
Failed to connect to the server.
Fields of ConnectionFailed
event: CloseEvent
The close event that might hold extra code and reason information.
Trait Implementations
impl Eq for ErrorKind
[src]
impl Clone for ErrorKind
[src]
impl PartialEq<ErrorKind> for ErrorKind
[src]
impl From<ErrorKind> for Error
[src]
impl Debug for ErrorKind
[src]
impl Display for ErrorKind
[src]
Auto Trait Implementations
impl Sync for ErrorKind
impl Send for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
impl RefUnwindSafe for ErrorKind
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,