SmartRawLogLineView

Struct SmartRawLogLineView 

Source
pub struct SmartRawLogLineView<'a> { /* private fields */ }
πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Expand description

View into a borrowed log line

Unlike CheckedRawLogLine, this struct does not compute all the fields upfront, but instead provides methods to access the fields on demand.

This can be useful when you need to access only one or two fields from a log line. Performance gets worse if you need to access many fields; cloning the iterator becomes more expensive compared to a pre-computed struct like CheckedRawLogLine.

ImplementationsΒ§

SourceΒ§

impl<'a> LogLineView<'a>

Source

pub fn new(line: &'a str) -> Result<Self, &'static str>

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)

Creates a new RawLogLineView from a borrowed log line

The line is checked for the correct number of fields and that it’s not a comment line (like the version or fields header).

Source

pub fn date(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)

Returns the date field of the log line

This is the fallible version, though it should never fail, as the line has been checked for the correct number of fields when the struct was initialised

Source

pub fn time(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_edge_location(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn sc_bytes(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn c_ip(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_method(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_host(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_uri_stem(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn sc_status(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_referer(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_user_agent(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_uri_query(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_edge_result_type(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_edge_request_id(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_host_header(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_protocol(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_bytes(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn time_taken(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_forwarded_for(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn ssl_protocol(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn ssl_cipher(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_edge_response_result_type(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn cs_protocol_version(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn fle_status(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn fle_encrypted_fields(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn c_port(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn time_to_first_byte(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn x_edge_detailed_result_type(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn sc_content_type(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn sc_content_len(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn sc_range_start(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)
Source

pub fn sc_range_end(&self) -> &'a str

πŸ‘ŽDeprecated since 0.7.0: use new modules/types instead (borrowed, owned, referential)

Trait ImplementationsΒ§

SourceΒ§

impl<'a> Debug for LogLineView<'a>

SourceΒ§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait ImplementationsΒ§

Β§

impl<'a> !Freeze for LogLineView<'a>

Β§

impl<'a> !RefUnwindSafe for LogLineView<'a>

Β§

impl<'a> Send for LogLineView<'a>

Β§

impl<'a> !Sync for LogLineView<'a>

Β§

impl<'a> Unpin for LogLineView<'a>

Β§

impl<'a> UnwindSafe for LogLineView<'a>

Blanket ImplementationsΒ§

SourceΒ§

impl<T> Any for T
where T: 'static + ?Sized,

SourceΒ§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
SourceΒ§

impl<T> Borrow<T> for T
where T: ?Sized,

SourceΒ§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
SourceΒ§

impl<T> BorrowMut<T> for T
where T: ?Sized,

SourceΒ§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
SourceΒ§

impl<T> From<T> for T

SourceΒ§

fn from(t: T) -> T

Returns the argument unchanged.

SourceΒ§

impl<T, U> Into<U> for T
where U: From<T>,

SourceΒ§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

SourceΒ§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

SourceΒ§

type Error = Infallible

The type returned in the event of a conversion error.
SourceΒ§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
SourceΒ§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

SourceΒ§

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

The type returned in the event of a conversion error.
SourceΒ§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.