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
impl Deref for BoxedSendError
Source§impl<T: Send + 'static> DirectCacheAccess<T, BoxedSendError> for ImmediateValuePromise<T>
impl<T: Send + 'static> DirectCacheAccess<T, BoxedSendError> for ImmediateValuePromise<T>
Source§fn get_value_mut(&mut self) -> Option<&mut T>
fn get_value_mut(&mut self) -> Option<&mut T>
returns mutable reference to the cache if applicable
Source§fn get_result(&self) -> Option<Result<&T, &BoxedSendError>>
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>
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>>
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>
impl<T> DirectCacheAccess<T, BoxedSendError> for ImmediateValueState<T>
Source§fn get_value_mut(&mut self) -> Option<&mut T>
fn get_value_mut(&mut self) -> Option<&mut T>
gets a mutable reference to the local cache if existing
Source§fn take_value(&mut self) -> Option<T>
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>>
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>>
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>
impl<T: Send + 'static, M> DirectCacheAccess<T, BoxedSendError> for ProgressTrackedImValProm<T, M>
Source§fn get_value_mut(&mut self) -> Option<&mut T>
fn get_value_mut(&mut self) -> Option<&mut T>
returns mutable reference to the cache if applicable
Source§fn get_result(&self) -> Option<Result<&T, &BoxedSendError>>
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>
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>>
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
Auto Trait Implementations§
impl Freeze for BoxedSendError
impl !RefUnwindSafe for BoxedSendError
impl Send for BoxedSendError
impl !Sync for BoxedSendError
impl Unpin for BoxedSendError
impl !UnwindSafe for BoxedSendError
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