pub struct NonSend<T: ?Sized>(_);
thread_local
only.Expand description
Type used to access !Send
storages.
Trait Implementations
sourceimpl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewBorrower<T>>
impl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewBorrower<T>>
sourcefn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
This function is where the actual borrowing happens.
sourceimpl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewMutBorrower<T>>
impl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewMutBorrower<T>>
sourcefn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
This function is where the actual borrowing happens.
sourceimpl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewBorrower<T>> where
T::Tracking: Sync,
impl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewBorrower<T>> where
T::Tracking: Sync,
sourcefn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
This function is where the actual borrowing happens.
sourceimpl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewMutBorrower<T>> where
T::Tracking: Sync,
impl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewMutBorrower<T>> where
T::Tracking: Sync,
sourcefn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
fn all_borrow(
all_storages: &'a AllStorages,
last_run: Option<u32>,
current: u32
) -> Result<Self::View, GetStorage>
This function is where the actual borrowing happens.
sourceimpl<'a, T: Sync + Component> Borrow<'a> for NonSend<ViewBorrower<T>> where
T::Tracking: Sync,
impl<'a, T: Sync + Component> Borrow<'a> for NonSend<ViewBorrower<T>> where
T::Tracking: Sync,
sourceimpl<'a, T: Sync + Component> Borrow<'a> for NonSend<ViewMutBorrower<T>> where
T::Tracking: Sync,
impl<'a, T: Sync + Component> Borrow<'a> for NonSend<ViewMutBorrower<T>> where
T::Tracking: Sync,
sourceimpl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueView<'a, T>>
impl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueView<'a, T>>
sourcefn borrow_info(info: &mut Vec<TypeInfo>)
fn borrow_info(info: &mut Vec<TypeInfo>)
This information is used during workload creation to determine which systems can run in parallel. Read more
sourceimpl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueViewMut<'a, T>>
impl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueViewMut<'a, T>>
sourcefn borrow_info(info: &mut Vec<TypeInfo>)
fn borrow_info(info: &mut Vec<TypeInfo>)
This information is used during workload creation to determine which systems can run in parallel. Read more
sourceimpl<'a, T: Sync + Component> BorrowInfo for NonSend<View<'a, T>>
impl<'a, T: Sync + Component> BorrowInfo for NonSend<View<'a, T>>
sourcefn borrow_info(info: &mut Vec<TypeInfo>)
fn borrow_info(info: &mut Vec<TypeInfo>)
This information is used during workload creation to determine which systems can run in parallel. Read more
sourceimpl<'a, T: Sync + Component> BorrowInfo for NonSend<ViewMut<'a, T>>
impl<'a, T: Sync + Component> BorrowInfo for NonSend<ViewMut<'a, T>>
sourcefn borrow_info(info: &mut Vec<TypeInfo>)
fn borrow_info(info: &mut Vec<TypeInfo>)
This information is used during workload creation to determine which systems can run in parallel. Read more
sourceimpl<T: Sync + Unique> IntoBorrow for NonSend<UniqueView<'_, T>>
impl<T: Sync + Unique> IntoBorrow for NonSend<UniqueView<'_, T>>
type Borrow = NonSend<UniqueViewBorrower<T>>
type Borrow = NonSend<UniqueViewBorrower<T>>
Helper type almost allowing GAT on stable.
sourceimpl<T: Sync + Unique> IntoBorrow for NonSend<UniqueViewMut<'_, T>>
impl<T: Sync + Unique> IntoBorrow for NonSend<UniqueViewMut<'_, T>>
type Borrow = NonSend<UniqueViewMutBorrower<T>>
type Borrow = NonSend<UniqueViewMutBorrower<T>>
Helper type almost allowing GAT on stable.
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for NonSend<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for NonSend<T> where
T: Send,
impl<T: ?Sized> Sync for NonSend<T> where
T: Sync,
impl<T: ?Sized> Unpin for NonSend<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for NonSend<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more