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<SystemdJournalExportBlock<'a>> for SystemdJournalExportBlock<'a>
impl<'a> PartialEq<SystemdJournalExportBlock<'a>> for SystemdJournalExportBlock<'a>
source§fn eq(&self, other: &SystemdJournalExportBlock<'a>) -> bool
fn eq(&self, other: &SystemdJournalExportBlock<'a>) -> bool
This method 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
enumeration