pub struct LogReadRequest { /* private fields */ }Expand description
Bounded read request for one log source.
Implementations§
Source§impl LogReadRequest
impl LogReadRequest
Sourcepub const fn new(source: LogSource, deadline: Timestamp) -> Self
pub const fn new(source: LogSource, deadline: Timestamp) -> Self
Creates a request for 100 lines from the selected source.
Sourcepub fn with_lines(self, lines: u32) -> InfraResult<Self>
pub fn with_lines(self, lines: u32) -> InfraResult<Self>
Sets the maximum returned line count.
Sourcepub fn with_grep(self, grep: impl Into<String>) -> InfraResult<Self>
pub fn with_grep(self, grep: impl Into<String>) -> InfraResult<Self>
Adds a case-sensitive local substring filter.
Sourcepub fn with_journal_filters(self, filters: JournalFilters) -> InfraResult<Self>
pub fn with_journal_filters(self, filters: JournalFilters) -> InfraResult<Self>
Sets journal-specific filters.
Sourcepub const fn journal(&self) -> &JournalFilters
pub const fn journal(&self) -> &JournalFilters
Returns journal-specific filters.
Trait Implementations§
Source§impl Clone for LogReadRequest
impl Clone for LogReadRequest
Source§fn clone(&self) -> LogReadRequest
fn clone(&self) -> LogReadRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogReadRequest
impl Debug for LogReadRequest
Source§impl<'de> Deserialize<'de> for LogReadRequest
impl<'de> Deserialize<'de> for LogReadRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LogReadRequest
impl PartialEq for LogReadRequest
Source§fn eq(&self, other: &LogReadRequest) -> bool
fn eq(&self, other: &LogReadRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LogReadRequest
impl Serialize for LogReadRequest
impl Eq for LogReadRequest
impl StructuralPartialEq for LogReadRequest
Auto Trait Implementations§
impl Freeze for LogReadRequest
impl RefUnwindSafe for LogReadRequest
impl Send for LogReadRequest
impl Sync for LogReadRequest
impl Unpin for LogReadRequest
impl UnsafeUnpin for LogReadRequest
impl UnwindSafe for LogReadRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.