pub struct NotificationPublication { /* private fields */ }Expand description
One immutable record shares its original admission across clones. Length-framed UTF-8 fields can also occupy native metadata TEXT without escaping or allocating decoded message strings.
Implementations§
Source§impl NotificationPublication
impl NotificationPublication
pub fn encode( start: NotificationPublicationStart, messages: &[PendingNotification], listener: Option<&NotificationListenerRow>, control: &StorageReadControl, ) -> VersionResult<Self>
pub fn bytes(&self) -> &[u8] ⓘ
Retain the immutable encoded record and its original memory admission.
pub const fn header(&self) -> NotificationPublicationHeader
pub const fn fingerprint(&self) -> [u8; 32]
pub fn view(&self) -> NotificationPublicationView<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NotificationPublication
impl RefUnwindSafe for NotificationPublication
impl Send for NotificationPublication
impl Sync for NotificationPublication
impl Unpin for NotificationPublication
impl UnsafeUnpin for NotificationPublication
impl UnwindSafe for NotificationPublication
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