pub enum ServerStreamError {
RequestFailed(Error),
ServerError(Error),
UpgradeFailure(Error),
}Expand description
Errors that could occur when creating a server stream
Variants§
RequestFailed(Error)
Initial HTTP request failure
ServerError(Error)
Server responded with an error message
UpgradeFailure(Error)
Upgrading the connection failed
Trait Implementations§
Source§impl Debug for ServerStreamError
impl Debug for ServerStreamError
Source§impl Display for ServerStreamError
impl Display for ServerStreamError
Source§impl Error for ServerStreamError
impl Error for ServerStreamError
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 ServerStreamError
impl !RefUnwindSafe for ServerStreamError
impl Send for ServerStreamError
impl Sync for ServerStreamError
impl Unpin for ServerStreamError
impl !UnwindSafe for ServerStreamError
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