pub struct RingWriter { /* private fields */ }Expand description
The app’s side of the ring: a writable mapping and the records the service has not finished with yet.
Implementations§
Source§impl RingWriter
impl RingWriter
Sourcepub fn fd(&self) -> BorrowedFd<'_>
pub fn fd(&self) -> BorrowedFd<'_>
The memfd, to send with the hello.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn write(&mut self, sequence: u64, record: &[u8]) -> Option<usize>
pub fn write(&mut self, sequence: u64, record: &[u8]) -> Option<usize>
Copy record into the ring as frame sequence and return its
offset, or None when the free space cannot take it now.
Auto Trait Implementations§
impl Forget for RingWriter
impl Freeze for RingWriter
impl Move for RingWriter
impl RefUnwindSafe for RingWriterwhere
I32NotAllOnes: RefUnwindSafe,
impl Send for RingWriter
impl Sync for RingWriter
impl Unpin for RingWriter
impl UnsafeUnpin for RingWriterwhere
I32NotAllOnes: UnsafeUnpin,
*mut c_void: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(u64, usize, usize)>: UnsafeUnpin,
impl UnwindSafe for RingWriter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more