#[repr(C)]pub struct WeaveCtxData {
pub yield_chan: Arc<WeaveChannelData>,
pub resume_chan: Arc<WeaveChannelData>,
}Expand description
Weave context data stored on the heap for NaN-boxing
In the 40-byte Value, WeaveCtx stored two Arc pointers inline. With NaN-boxing, we heap-allocate this struct.
Fields§
§yield_chan: Arc<WeaveChannelData>Channel for yielding values from weave to consumer
resume_chan: Arc<WeaveChannelData>Channel for resuming with values from consumer to weave
Trait Implementations§
Source§impl Clone for WeaveCtxData
impl Clone for WeaveCtxData
Source§fn clone(&self) -> WeaveCtxData
fn clone(&self) -> WeaveCtxData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeaveCtxData
impl RefUnwindSafe for WeaveCtxData
impl Send for WeaveCtxData
impl Sync for WeaveCtxData
impl Unpin for WeaveCtxData
impl UnwindSafe for WeaveCtxData
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