pub enum RecvError {
Timeout,
Disconnected,
IO(Error),
}Expand description
The result of waiting for an update from an EventSource with a timeout.
This is quite similar to the standard library
mpsc::RecvTimeoutError, but also permitting an
io::Error which may result from reading from standard input.
Variants§
Timeout
No event was received because we timed out.
Disconnected
The source is disconnected and there are no more messages.
IO(Error)
An IO error occurred while trying to read an event.
Trait Implementations§
Source§impl From<RecvTimeoutError> for RecvError
impl From<RecvTimeoutError> for RecvError
Source§fn from(value: RecvTimeoutError) -> Self
fn from(value: RecvTimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RecvError
impl !UnwindSafe for RecvError
impl Freeze for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl UnsafeUnpin for RecvError
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> 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