Struct rsyslog::Message[][src]

pub struct Message<'a, T = Option<&'a str>, S = Vec<StructuredData<'a>>, M = Raw<'a>> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
{ pub facility: u8, pub severity: u8, pub version: u8, pub timestamp: T, pub hostname: Option<&'a str>, pub app_name: Option<&'a str>, pub proc_id: Option<&'a str>, pub msg_id: Option<&'a str>, pub structured_data: S, pub msg: M, }

Fields

facility: u8severity: u8version: u8timestamp: Thostname: Option<&'a str>app_name: Option<&'a str>proc_id: Option<&'a str>msg_id: Option<&'a str>structured_data: Smsg: M

Implementations

impl<'a, T, S, M> Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

pub fn parse(msg: &'a str) -> Result<Message<'a, T, S, M>, Error<'a>>[src]

pub fn parse_with_rem(
    msg: &'a str
) -> Result<(&'a str, Message<'a, T, S, M>), Error<'a>>
[src]

pub fn iter(msg: &'a str) -> MessageIter<'a, T, S, M>

Notable traits for MessageIter<'a, T, S, M>

impl<'a, T, S, M> Iterator for MessageIter<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
type Item = Result<Message<'a, T, S, M>, Error<'a>>;
[src]

Trait Implementations

impl<'a, T: Clone, S: Clone, M: Clone> Clone for Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

impl<'a, T: Debug, S: Debug, M: Debug> Debug for Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

impl<'a, T: Eq, S: Eq, M: Eq> Eq for Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

impl<'a, T: PartialEq, S: PartialEq, M: PartialEq> PartialEq<Message<'a, T, S, M>> for Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

impl<'a, T, S, M> StructuralEq for Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

impl<'a, T, S, M> StructuralPartialEq for Message<'a, T, S, M> where
    T: ParsePart<'a>,
    S: ParsePart<'a>,
    M: ParseMsg<'a>, 
[src]

Auto Trait Implementations

impl<'a, T, S, M> RefUnwindSafe for Message<'a, T, S, M> where
    M: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, S, M> Send for Message<'a, T, S, M> where
    M: Send,
    S: Send,
    T: Send

impl<'a, T, S, M> Sync for Message<'a, T, S, M> where
    M: Sync,
    S: Sync,
    T: Sync

impl<'a, T, S, M> Unpin for Message<'a, T, S, M> where
    M: Unpin,
    S: Unpin,
    T: Unpin

impl<'a, T, S, M> UnwindSafe for Message<'a, T, S, M> where
    M: UnwindSafe,
    S: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.