Struct shipyard::borrow::NonSendSync
source · [−]pub struct NonSendSync<T: ?Sized>(_);
thread_local
only.Expand description
Type used to access !Send + !Sync
storages.
Trait Implementations
sourceimpl<'a, T: Unique> AllStoragesBorrow<'a> for NonSendSync<UniqueViewBorrower<T>>
impl<'a, T: Unique> AllStoragesBorrow<'a> for NonSendSync<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: Unique> AllStoragesBorrow<'a> for NonSendSync<UniqueViewMutBorrower<T>>
impl<'a, T: Unique> AllStoragesBorrow<'a> for NonSendSync<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: Component> AllStoragesBorrow<'a> for NonSendSync<ViewBorrower<T>>
impl<'a, T: Component> AllStoragesBorrow<'a> for NonSendSync<ViewBorrower<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: Component> AllStoragesBorrow<'a> for NonSendSync<ViewMutBorrower<T>>
impl<'a, T: Component> AllStoragesBorrow<'a> for NonSendSync<ViewMutBorrower<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<T: ?Sized> AsMut<T> for NonSendSync<T>
impl<T: ?Sized> AsMut<T> for NonSendSync<T>
sourceimpl<T: ?Sized> AsRef<T> for NonSendSync<T>
impl<T: ?Sized> AsRef<T> for NonSendSync<T>
sourceimpl<'a, T: Unique> Borrow<'a> for NonSendSync<UniqueViewBorrower<T>>
impl<'a, T: Unique> Borrow<'a> for NonSendSync<UniqueViewBorrower<T>>
type View = NonSendSync<UniqueView<'a, T>>
sourceimpl<'a, T: Unique> Borrow<'a> for NonSendSync<UniqueViewMutBorrower<T>>
impl<'a, T: Unique> Borrow<'a> for NonSendSync<UniqueViewMutBorrower<T>>
type View = NonSendSync<UniqueViewMut<'a, T>>
sourceimpl<'a, T: Component> Borrow<'a> for NonSendSync<ViewBorrower<T>>
impl<'a, T: Component> Borrow<'a> for NonSendSync<ViewBorrower<T>>
sourceimpl<'a, T: Component> Borrow<'a> for NonSendSync<ViewMutBorrower<T>>
impl<'a, T: Component> Borrow<'a> for NonSendSync<ViewMutBorrower<T>>
sourceimpl<'a, T: Unique> BorrowInfo for NonSendSync<UniqueView<'a, T>>
impl<'a, T: Unique> BorrowInfo for NonSendSync<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: Unique> BorrowInfo for NonSendSync<UniqueViewMut<'a, T>>
impl<'a, T: Unique> BorrowInfo for NonSendSync<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: Component> BorrowInfo for NonSendSync<View<'a, T>>
impl<'a, T: Component> BorrowInfo for NonSendSync<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: Component> BorrowInfo for NonSendSync<ViewMut<'a, T>>
impl<'a, T: Component> BorrowInfo for NonSendSync<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: ?Sized> Deref for NonSendSync<T>
impl<T: ?Sized> Deref for NonSendSync<T>
sourceimpl<T: ?Sized> DerefMut for NonSendSync<T>
impl<T: ?Sized> DerefMut for NonSendSync<T>
sourceimpl<T: Unique> IntoBorrow for NonSendSync<UniqueView<'_, T>>
impl<T: Unique> IntoBorrow for NonSendSync<UniqueView<'_, T>>
type Borrow = NonSendSync<UniqueViewBorrower<T>>
type Borrow = NonSendSync<UniqueViewBorrower<T>>
Helper type almost allowing GAT on stable.
sourceimpl<T: Unique> IntoBorrow for NonSendSync<UniqueViewMut<'_, T>>
impl<T: Unique> IntoBorrow for NonSendSync<UniqueViewMut<'_, T>>
type Borrow = NonSendSync<UniqueViewMutBorrower<T>>
type Borrow = NonSendSync<UniqueViewMutBorrower<T>>
Helper type almost allowing GAT on stable.
sourceimpl<T: Component> IntoBorrow for NonSendSync<View<'_, T>>
impl<T: Component> IntoBorrow for NonSendSync<View<'_, T>>
type Borrow = NonSendSync<ViewBorrower<T>>
type Borrow = NonSendSync<ViewBorrower<T>>
Helper type almost allowing GAT on stable.
sourceimpl<T: Component> IntoBorrow for NonSendSync<ViewMut<'_, T>>
impl<T: Component> IntoBorrow for NonSendSync<ViewMut<'_, T>>
type Borrow = NonSendSync<ViewMutBorrower<T>>
type Borrow = NonSendSync<ViewMutBorrower<T>>
Helper type almost allowing GAT on stable.
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for NonSendSync<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for NonSendSync<T> where
T: Send,
impl<T: ?Sized> Sync for NonSendSync<T> where
T: Sync,
impl<T: ?Sized> Unpin for NonSendSync<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for NonSendSync<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