Struct BoxedSendError

Source
pub struct BoxedSendError(pub Box<dyn Error + Send>);
Expand description

Strong type to keep the boxed error. You can just deref it to get the inside box.

Tuple Fields§

§0: Box<dyn Error + Send>

Trait Implementations§

Source§

impl Deref for BoxedSendError

Source§

type Target = Box<dyn Error + Send>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T: Send + 'static> DirectCacheAccess<T, BoxedSendError> for ImmediateValuePromise<T>

Source§

fn get_value_mut(&mut self) -> Option<&mut T>

returns mutable reference to the cache if applicable
Source§

fn get_value(&self) -> Option<&T>

returns a reference to the cache if applicable
Source§

fn get_result(&self) -> Option<Result<&T, &BoxedSendError>>

returns a reference to the cache or to error if applicable
Source§

fn take_value(&mut self) -> Option<T>

takes the value and leaves the promise in a valid state indicating its emptiness
Source§

fn take_result(&mut self) -> Option<Result<T, BoxedSendError>>

takes the value or error and leaves the promise in a valid state indicating its emptiness
Source§

impl<T> DirectCacheAccess<T, BoxedSendError> for ImmediateValueState<T>

Source§

fn get_value_mut(&mut self) -> Option<&mut T>

gets a mutable reference to the local cache if existing

Source§

fn get_value(&self) -> Option<&T>

Get the value if possible, None otherwise

Source§

fn take_value(&mut self) -> Option<T>

Takes ownership of the inner value if ready, leaving self in state ImmediateValueState::Empty. Does nothing if we are in any other state.

Source§

fn get_result(&self) -> Option<Result<&T, &BoxedSendError>>

returns a reference to the cache or to error if applicable
Source§

fn take_result(&mut self) -> Option<Result<T, BoxedSendError>>

takes the value or error and leaves the promise in a valid state indicating its emptiness
Source§

impl<T: Send + 'static, M> DirectCacheAccess<T, BoxedSendError> for ProgressTrackedImValProm<T, M>

Source§

fn get_value_mut(&mut self) -> Option<&mut T>

returns mutable reference to the cache if applicable
Source§

fn get_value(&self) -> Option<&T>

returns a reference to the cache if applicable
Source§

fn get_result(&self) -> Option<Result<&T, &BoxedSendError>>

returns a reference to the cache or to error if applicable
Source§

fn take_value(&mut self) -> Option<T>

takes the value and leaves the promise in a valid state indicating its emptiness
Source§

fn take_result(&mut self) -> Option<Result<T, BoxedSendError>>

takes the value or error and leaves the promise in a valid state indicating its emptiness
Source§

impl<E: Error + Send + 'static> From<E> for BoxedSendError

Source§

fn from(e: E) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.