pub struct Atomic<T>(pub T);Expand description
Marks a live collection to be treated atomically during slicing.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<'a, K, V, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<KeyedSingleton<K, V, Atomic<L>, BoundedValue>>
impl<'a, K, V, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<KeyedSingleton<K, V, Atomic<L>, BoundedValue>>
Source§type Slice = KeyedSingleton<K, V, Tick<L>, Bounded>
type Slice = KeyedSingleton<K, V, Tick<L>, Bounded>
The sliced version of this live collection.
Source§fn preferred_tick(&self) -> Option<Tick<L>>
fn preferred_tick(&self) -> Option<Tick<L>>
Gets the preferred tick to slice at. Used for atomic slicing.
Source§fn get_location(&self) -> &L
fn get_location(&self) -> &L
Gets the location associated with this live collection.
Source§impl<'a, K, V, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<KeyedSingleton<K, V, Atomic<L>, Unbounded>>
impl<'a, K, V, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<KeyedSingleton<K, V, Atomic<L>, Unbounded>>
Source§type Slice = KeyedSingleton<K, V, Tick<L>, Bounded>
type Slice = KeyedSingleton<K, V, Tick<L>, Bounded>
The sliced version of this live collection.
Source§fn preferred_tick(&self) -> Option<Tick<L>>
fn preferred_tick(&self) -> Option<Tick<L>>
Gets the preferred tick to slice at. Used for atomic slicing.
Source§fn get_location(&self) -> &L
fn get_location(&self) -> &L
Gets the location associated with this live collection.
Source§impl<'a, T, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<Optional<T, Atomic<L>, Unbounded>>
impl<'a, T, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<Optional<T, Atomic<L>, Unbounded>>
Source§fn preferred_tick(&self) -> Option<Tick<L>>
fn preferred_tick(&self) -> Option<Tick<L>>
Gets the preferred tick to slice at. Used for atomic slicing.
Source§fn get_location(&self) -> &L
fn get_location(&self) -> &L
Gets the location associated with this live collection.
Source§impl<'a, T, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<Singleton<T, Atomic<L>, Unbounded>>
impl<'a, T, L: Location<'a> + NoTick> Slicable<'a, L> for Atomic<Singleton<T, Atomic<L>, Unbounded>>
Source§fn preferred_tick(&self) -> Option<Tick<L>>
fn preferred_tick(&self) -> Option<Tick<L>>
Gets the preferred tick to slice at. Used for atomic slicing.
Source§fn get_location(&self) -> &L
fn get_location(&self) -> &L
Gets the location associated with this live collection.
Source§impl<'a, T, L: Location<'a> + NoTick, O: Ordering, R: Retries> Slicable<'a, L> for Atomic<Stream<T, Atomic<L>, Unbounded, O, R>>
impl<'a, T, L: Location<'a> + NoTick, O: Ordering, R: Retries> Slicable<'a, L> for Atomic<Stream<T, Atomic<L>, Unbounded, O, R>>
Source§fn preferred_tick(&self) -> Option<Tick<L>>
fn preferred_tick(&self) -> Option<Tick<L>>
Gets the preferred tick to slice at. Used for atomic slicing.
Source§fn get_location(&self) -> &L
fn get_location(&self) -> &L
Gets the location associated with this live collection.
Auto Trait Implementations§
impl<T> Freeze for Atomic<T>where
T: Freeze,
impl<T> RefUnwindSafe for Atomic<T>where
T: RefUnwindSafe,
impl<T> Send for Atomic<T>where
T: Send,
impl<T> Sync for Atomic<T>where
T: Sync,
impl<T> Unpin for Atomic<T>where
T: Unpin,
impl<T> UnwindSafe for Atomic<T>where
T: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].