pub struct SystemdJournalExportBlock<'a> {
pub journal_entry: Cow<'a, [u8]>,
}
Expand description
The Systemd Journal Export Block is a lightweight containter for systemd Journal Export Format entry data.
Fields§
§journal_entry: Cow<'a, [u8]>
A journal entry as described in the Journal Export Format documentation.
Implementations§
Source§impl<'a> SystemdJournalExportBlock<'a>
impl<'a> SystemdJournalExportBlock<'a>
Sourcepub fn into_owned(self) -> SystemdJournalExportBlock<'static>
pub fn into_owned(self) -> SystemdJournalExportBlock<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations§
Source§impl<'a> Clone for SystemdJournalExportBlock<'a>
impl<'a> Clone for SystemdJournalExportBlock<'a>
Source§fn clone(&self) -> SystemdJournalExportBlock<'a>
fn clone(&self) -> SystemdJournalExportBlock<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SystemdJournalExportBlock<'a>
impl<'a> Debug for SystemdJournalExportBlock<'a>
Source§impl<'a> PartialEq for SystemdJournalExportBlock<'a>
impl<'a> PartialEq for SystemdJournalExportBlock<'a>
Source§fn eq(&self, other: &SystemdJournalExportBlock<'a>) -> bool
fn eq(&self, other: &SystemdJournalExportBlock<'a>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<'a> PcapNgBlock<'a> for SystemdJournalExportBlock<'a>
impl<'a> PcapNgBlock<'a> for SystemdJournalExportBlock<'a>
Source§fn from_slice<B: ByteOrder>(
slice: &'a [u8],
) -> Result<(&'a [u8], Self), PcapError>
fn from_slice<B: ByteOrder>( slice: &'a [u8], ) -> Result<(&'a [u8], Self), PcapError>
Parse a new block from a slice
Source§fn write_to<B: ByteOrder, W: Write>(&self, writer: &mut W) -> IoResult<usize>
fn write_to<B: ByteOrder, W: Write>(&self, writer: &mut W) -> IoResult<usize>
Write the content of a block into a writer
Source§fn into_block(self) -> Block<'a>
fn into_block(self) -> Block<'a>
Convert a block into the
Block
enumerationimpl<'a> Eq for SystemdJournalExportBlock<'a>
impl<'a> StructuralPartialEq for SystemdJournalExportBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for SystemdJournalExportBlock<'a>
impl<'a> RefUnwindSafe for SystemdJournalExportBlock<'a>
impl<'a> Send for SystemdJournalExportBlock<'a>
impl<'a> Sync for SystemdJournalExportBlock<'a>
impl<'a> Unpin for SystemdJournalExportBlock<'a>
impl<'a> UnwindSafe for SystemdJournalExportBlock<'a>
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