pub struct ResolverCommonData<V, T: Default> {
pub resolvers: UnsafeCell<ResolverBox<V>>,
pub values: UnsafeCell<Values<V, T>>,
pub exec_order: Mutex<ExecOrder>,
pub awaiters_broker: AwaitersBroker<T>,
}
Expand description
Shared between the resolver, awaiters and the resolution window.
Fields§
§resolvers: UnsafeCell<ResolverBox<V>>
§values: UnsafeCell<Values<V, T>>
§exec_order: Mutex<ExecOrder>
Resolutions happen in this order. Holds index of the resolver in resolver
.
This index follows pointer semantics and is unsafe to operate on.
The order can have gaps, so it’s size should be somewhat larger than the total
amount of resolvers.
awaiters_broker: AwaitersBroker<T>
Auto Trait Implementations§
impl<V, T> !Freeze for ResolverCommonData<V, T>
impl<V, T> !RefUnwindSafe for ResolverCommonData<V, T>
impl<V, T> Send for ResolverCommonData<V, T>
impl<V, T> !Sync for ResolverCommonData<V, T>
impl<V, T> Unpin for ResolverCommonData<V, T>
impl<V, T> UnwindSafe for ResolverCommonData<V, T>where
T: UnwindSafe,
V: UnwindSafe,
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