#[non_exhaustive]pub enum Error {
Unsupported,
Net(NetError),
Url(String),
Size,
Backlog,
NotConnected,
}Expand description
why a call failed
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsupported
not on this target: UDP in the browser; everything on Android for now (plat has no sockets there yet, docs/ANDROID.md)
Net(NetError)
the network; NetErrorKind::Denied: the app’s permissions (net.connect / net.listen)
Url(String)
not a ws:// or wss:// URL (or “/path” in the browser)
Size
an empty payload, or one over the limit of the connection
Backlog
more waits to be sent than the WebSocket’s queue takes (WsOptions::max_unsent)
NotConnected
not connected (yet, or any more)
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Errorwhere
RawVecInner: Send,
impl Sync for Errorwhere
RawVecInner: Sync,
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Errorwhere
RawVecInner: UnwindSafe,
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