pub struct NonSend<T: ?Sized>(/* private fields */);
Expand description
Type used to access !Send
storages.
Trait Implementations§
source§impl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewBorrower<T>>
impl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewBorrower<T>>
source§fn 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.
source§impl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewMutBorrower<T>>
impl<'a, T: Sync + Unique> AllStoragesBorrow<'a> for NonSend<UniqueViewMutBorrower<T>>
source§fn 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.
source§impl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewBorrower<T>>
impl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewBorrower<T>>
source§fn 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.
source§impl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewMutBorrower<T>>
impl<'a, T: Sync + Component> AllStoragesBorrow<'a> for NonSend<ViewMutBorrower<T>>
source§fn 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.
source§impl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueView<'a, T>>
impl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueView<'a, T>>
source§impl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueViewMut<'a, T>>
impl<'a, T: Sync + Unique> BorrowInfo for NonSend<UniqueViewMut<'a, T>>
source§impl<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.
source§impl<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> Freeze for NonSend<T>
impl<T> RefUnwindSafe for NonSend<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for NonSend<T>
impl<T> Sync for NonSend<T>
impl<T> Unpin for NonSend<T>
impl<T> UnwindSafe for NonSend<T>where
T: UnwindSafe + ?Sized,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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