Struct timely::communication::allocator::zero_copy::bytes_exchange::SendEndpoint
source · pub struct SendEndpoint<P>where
P: BytesPush,{ /* private fields */ }
Expand description
A BytesPush
wrapper which stages writes.
Implementations§
source§impl<P> SendEndpoint<P>where
P: BytesPush,
impl<P> SendEndpoint<P>where
P: BytesPush,
sourcepub fn new(queue: P) -> SendEndpoint<P>
pub fn new(queue: P) -> SendEndpoint<P>
Allocates a new BytesSendEndpoint
from a shared queue.
sourcepub fn make_valid(&mut self, bytes: usize)
pub fn make_valid(&mut self, bytes: usize)
Makes the next bytes
bytes valid.
The current implementation also sends the bytes, to ensure early visibility.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for SendEndpoint<P>where
P: Freeze,
impl<P> !RefUnwindSafe for SendEndpoint<P>
impl<P> Send for SendEndpoint<P>where
P: Send,
impl<P> !Sync for SendEndpoint<P>
impl<P> Unpin for SendEndpoint<P>where
P: Unpin,
impl<P> !UnwindSafe for SendEndpoint<P>
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