pub struct Token {
pub(crate) array: ArrayToken,
pub(crate) list: ListToken,
pub(crate) zero: ZeroToken,
}
🔬This is a nightly-only experimental API. (
mpmc_channel
#126840)Expand description
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: ArrayToken
🔬This is a nightly-only experimental API. (
§mpmc_channel
#126840)list: ListToken
🔬This is a nightly-only experimental API. (
§mpmc_channel
#126840)zero: ZeroToken
🔬This is a nightly-only experimental API. (
mpmc_channel
#126840)Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl !Send for Token
impl !Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more