Struct Position
pub(in ::sync::mpmc::list) struct Position<T> { pub(in ::sync::mpmc::list) index: Atomic<usize>, pub(in ::sync::mpmc::list) block: Atomic<*mut Block<T>> }
A position in a channel.
Fields
index: Atomic<usize>The index in the channel.
block: Atomic<*mut Block<T>>The block in the linked list.
Trait Implementations
impl<T: Debug> Debug for Position<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T> !Freeze for Position<T>
impl<T> !UnwindSafe for Position<T>
impl<T> RefUnwindSafe for Position<T>
where
Atomic<*mut Block<T>>: RefUnwindSafe,
impl<T> Send for Position<T>
where
Atomic<*mut Block<T>>: Send,
impl<T> Sync for Position<T>
where
Atomic<*mut Block<T>>: Sync,
impl<T> Unpin for Position<T>
where
Atomic<*mut Block<T>>: Unpin,
impl<T> UnsafeUnpin for Position<T>
where
Atomic<*mut Block<T>>: UnsafeUnpin,
Blanket Implementations
impl<T> Any for Position<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Position<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Position<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Position<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Position<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Position<T>
impl<T, U> Into<U> for Position<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Position<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Position<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>