Struct tokio::prelude::future::SharedError [−][src]
pub struct SharedError<E> { /* fields omitted */ }
A wrapped error of the original future that is cloneable and implements Deref for ease of use.
Trait Implementations
impl<E> Deref for SharedError<E>
[src]
impl<E> Deref for SharedError<E>
type Target = E
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &E
[src]
ⓘImportant traits for &'a mut R
fn deref(&self) -> &E
Dereferences the value.
impl<E> Debug for SharedError<E> where
E: Debug,
[src]
impl<E> Debug for SharedError<E> where
E: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<E> Display for SharedError<E> where
E: Display,
[src]
impl<E> Display for SharedError<E> where
E: Display,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<E> Error for SharedError<E> where
E: Error,
[src]
impl<E> Error for SharedError<E> where
E: Error,
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<E> Clone for SharedError<E> where
E: Clone,
[src]
impl<E> Clone for SharedError<E> where
E: Clone,
fn clone(&self) -> SharedError<E>
[src]
fn clone(&self) -> SharedError<E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<E> Send for SharedError<E> where
E: Send + Sync,
impl<E> Send for SharedError<E> where
E: Send + Sync,
impl<E> Sync for SharedError<E> where
E: Send + Sync,
impl<E> Sync for SharedError<E> where
E: Send + Sync,