Struct timely::communication::allocator::zero_copy::bytes_exchange::SendEndpoint [−][src]
A BytesPush
wrapper which stages writes.
Implementations
impl<P> SendEndpoint<P> where
P: BytesPush,
[src]
P: BytesPush,
pub fn new(queue: P) -> SendEndpoint<P>
[src]
Allocates a new BytesSendEndpoint
from a shared queue.
pub fn make_valid(&mut self, bytes: usize)
[src]
Makes the next bytes
bytes valid.
The current implementation also sends the bytes, to ensure early visibility.
pub fn reserve(&mut self, capacity: usize) -> &mut [u8]ⓘ
[src]
Acquires a prefix of self.empty()
of length at least capacity
.
pub fn publish(&mut self)
[src]
Marks all written data as valid, makes visible.
Trait Implementations
Auto Trait Implementations
impl<P> !RefUnwindSafe for SendEndpoint<P>
impl<P> Send for SendEndpoint<P> where
P: Send,
P: Send,
impl<P> !Sync for SendEndpoint<P>
impl<P> Unpin for SendEndpoint<P> where
P: Unpin,
P: Unpin,
impl<P> !UnwindSafe for SendEndpoint<P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,