pub struct ShmJournalSubscriber { /* private fields */ }Expand description
SHM-backed journal subscriber.
Attach-only: opens/creates the mapping and exposes a subscriber handle.
Implementations§
Source§impl ShmJournalSubscriber
impl ShmJournalSubscriber
Sourcepub fn poll_next_len(
&mut self,
out: &mut [u8],
) -> Result<Option<usize>, BackingError>
pub fn poll_next_len( &mut self, out: &mut [u8], ) -> Result<Option<usize>, BackingError>
Poll for the next record, copying bytes into out.
Returns Ok(None) when no record is available yet.
Sourcepub fn wait_next_len<W: WaitStrategy>(
&mut self,
out: &mut [u8],
wait: &mut W,
) -> Result<usize, BackingError>
pub fn wait_next_len<W: WaitStrategy>( &mut self, out: &mut [u8], wait: &mut W, ) -> Result<usize, BackingError>
Spin/poll until the next record is available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShmJournalSubscriber
impl !RefUnwindSafe for ShmJournalSubscriber
impl Send for ShmJournalSubscriber
impl Sync for ShmJournalSubscriber
impl Unpin for ShmJournalSubscriber
impl !UnwindSafe for ShmJournalSubscriber
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