#[non_exhaustive]pub enum TurnWaitError {
SourceClosed,
ClientClosed,
EventSourceFailed {
message: String,
},
}Expand description
Why a turn wait ended without a server-authored outcome.
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.
SourceClosed
The turn’s event source closed before the turn ended.
ClientClosed
The client was closed before the turn ended.
EventSourceFailed
The turn’s event source failed before the turn ended.
Trait Implementations§
Source§impl Clone for TurnWaitError
impl Clone for TurnWaitError
Source§impl Debug for TurnWaitError
impl Debug for TurnWaitError
Source§impl Display for TurnWaitError
impl Display for TurnWaitError
impl Eq for TurnWaitError
Source§impl Error for TurnWaitError
impl Error for TurnWaitError
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()
Source§impl From<TurnWaitError> for TurnStreamError
impl From<TurnWaitError> for TurnStreamError
Source§fn from(source: TurnWaitError) -> Self
fn from(source: TurnWaitError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TurnWaitError
impl PartialEq for TurnWaitError
impl StructuralPartialEq for TurnWaitError
Auto Trait Implementations§
impl Freeze for TurnWaitError
impl RefUnwindSafe for TurnWaitError
impl Send for TurnWaitError
impl Sync for TurnWaitError
impl Unpin for TurnWaitError
impl UnsafeUnpin for TurnWaitError
impl UnwindSafe for TurnWaitError
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