pub struct ShmJournalPublisher { /* private fields */ }Expand description
SHM-backed journal publisher.
Attach-only: opens/creates the mapping and exposes a publisher handle.
Implementations§
Source§impl ShmJournalPublisher
impl ShmJournalPublisher
Sourcepub fn try_append(&mut self, payload: &[u8]) -> Result<u64, BackingError>
pub fn try_append(&mut self, payload: &[u8]) -> Result<u64, BackingError>
Append a payload (claim + copy + commit).
Sourcepub fn max_payload(&self) -> u32
pub fn max_payload(&self) -> u32
Maximum payload size supported by this layout.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShmJournalPublisher
impl !RefUnwindSafe for ShmJournalPublisher
impl Send for ShmJournalPublisher
impl Sync for ShmJournalPublisher
impl Unpin for ShmJournalPublisher
impl !UnwindSafe for ShmJournalPublisher
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