Struct Token
pub struct Token { pub(crate) array: ArrayToken, pub(crate) list: ListToken, pub(crate) zero: ZeroToken }
Temporary data that gets initialized during a blocking operation, and is consumed by
read or write.
Each field contains data associated with a specific channel flavor.
Fields
array: ArrayTokenlist: ListTokenzero: ZeroToken
Trait Implementations
impl Debug for Token
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Token
fn default() -> Token
Auto Trait Implementations
impl !Send for Token
impl !Sync for Token
impl Freeze for Token
impl RefUnwindSafe for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
Blanket Implementations
impl<T> Any for Token
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Token
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Token
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Token
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Token
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Token
impl<T, U> Into<U> for Token
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 Token
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 Token
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>