pub enum FlowError {
Flushing,
Eos,
NotNegotiated(ErrorMessage),
Error(ErrorMessage),
}
Variants§
Trait Implementations§
source§impl Error for FlowError
impl Error for FlowError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<'a> From<&'a FlowError> for FlowReturn
impl<'a> From<&'a FlowError> for FlowReturn
source§fn from(err: &FlowError) -> FlowReturn
fn from(err: &FlowError) -> FlowReturn
Converts to this type from the input type.
source§impl From<FlowError> for FlowReturn
impl From<FlowError> for FlowReturn
source§impl PartialEq for FlowError
impl PartialEq for FlowError
impl Eq for FlowError
impl StructuralPartialEq for FlowError
Auto Trait Implementations§
impl Freeze for FlowError
impl RefUnwindSafe for FlowError
impl Send for FlowError
impl Sync for FlowError
impl Unpin for FlowError
impl UnwindSafe for FlowError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more