pub struct Operation(usize);
🔬This is a nightly-only experimental API. (
mpmc_channel
#126840)Expand description
Identifier associated with an operation by a specific thread on a specific channel.
Tuple Fields§
§0: usize
🔬This is a nightly-only experimental API. (
mpmc_channel
#126840)Implementations§
Source§impl Operation
impl Operation
Sourcepub fn hook<T>(r: &mut T) -> Operation
🔬This is a nightly-only experimental API. (mpmc_channel
#126840)
pub fn hook<T>(r: &mut T) -> Operation
mpmc_channel
#126840)Creates an operation identifier from a mutable reference.
This function essentially just turns the address of the reference into a number. The reference should point to a variable that is specific to the thread and the operation, and is alive for the entire duration of a blocking operation.
Trait Implementations§
impl Copy for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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