Enum uniffi::deps::oneshot::RecvTimeoutError
pub enum RecvTimeoutError {
Timeout,
Disconnected,
}
Expand description
An error returned when failing to receive a message in
Receiver::recv_timeout
.
Variants§
Timeout
No message arrived on the channel before the timeout was reached. The channel is still open.
Disconnected
The channel is closed. Either the sender was dropped before sending any message, or the message has already been extracted from the receiver.
Trait Implementations§
§impl Clone for RecvTimeoutError
impl Clone for RecvTimeoutError
§fn clone(&self) -> RecvTimeoutError
fn clone(&self) -> RecvTimeoutError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for RecvTimeoutError
impl Debug for RecvTimeoutError
§impl Display for RecvTimeoutError
impl Display for RecvTimeoutError
§impl Error for RecvTimeoutError
impl Error for RecvTimeoutError
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()
§impl Hash for RecvTimeoutError
impl Hash for RecvTimeoutError
§impl PartialEq<RecvTimeoutError> for RecvTimeoutError
impl PartialEq<RecvTimeoutError> for RecvTimeoutError
§fn eq(&self, other: &RecvTimeoutError) -> bool
fn eq(&self, other: &RecvTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RecvTimeoutError
impl Eq for RecvTimeoutError
impl StructuralEq for RecvTimeoutError
impl StructuralPartialEq for RecvTimeoutError
Auto Trait Implementations§
impl RefUnwindSafe for RecvTimeoutError
impl Send for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
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
§impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>