pub struct ContainerLogOptions { /* private fields */ }Expand description
Bounded one-shot Docker log options.
Implementations§
Source§impl ContainerLogOptions
impl ContainerLogOptions
Sourcepub fn with_lines(self, lines: u32) -> InfraResult<Self>
pub fn with_lines(self, lines: u32) -> InfraResult<Self>
Sets the requested tail line count.
Sourcepub const fn with_stream(self, stream: DockerLogStream) -> Self
pub const fn with_stream(self, stream: DockerLogStream) -> Self
Selects the output stream.
Sourcepub fn with_since(self, seconds: i64) -> InfraResult<Self>
pub fn with_since(self, seconds: i64) -> InfraResult<Self>
Sets an inclusive lower Unix-second bound.
Sourcepub fn with_until(self, seconds: i64) -> InfraResult<Self>
pub fn with_until(self, seconds: i64) -> InfraResult<Self>
Sets an inclusive upper Unix-second bound.
Sourcepub fn with_grep(self, grep: impl Into<String>) -> InfraResult<Self>
pub fn with_grep(self, grep: impl Into<String>) -> InfraResult<Self>
Adds a local case-sensitive substring filter.
Sourcepub const fn stream(&self) -> DockerLogStream
pub const fn stream(&self) -> DockerLogStream
Returns the selected stream.
Sourcepub const fn since_unix_seconds(&self) -> Option<i64>
pub const fn since_unix_seconds(&self) -> Option<i64>
Returns the lower Unix-second bound.
Sourcepub const fn until_unix_seconds(&self) -> Option<i64>
pub const fn until_unix_seconds(&self) -> Option<i64>
Returns the upper Unix-second bound.
Trait Implementations§
Source§impl Clone for ContainerLogOptions
impl Clone for ContainerLogOptions
Source§fn clone(&self) -> ContainerLogOptions
fn clone(&self) -> ContainerLogOptions
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 ContainerLogOptions
impl Debug for ContainerLogOptions
Source§impl Default for ContainerLogOptions
impl Default for ContainerLogOptions
Source§impl<'de> Deserialize<'de> for ContainerLogOptions
impl<'de> Deserialize<'de> for ContainerLogOptions
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 ContainerLogOptions
impl PartialEq for ContainerLogOptions
Source§fn eq(&self, other: &ContainerLogOptions) -> bool
fn eq(&self, other: &ContainerLogOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContainerLogOptions
impl Serialize for ContainerLogOptions
impl Eq for ContainerLogOptions
impl StructuralPartialEq for ContainerLogOptions
Auto Trait Implementations§
impl Freeze for ContainerLogOptions
impl RefUnwindSafe for ContainerLogOptions
impl Send for ContainerLogOptions
impl Sync for ContainerLogOptions
impl Unpin for ContainerLogOptions
impl UnsafeUnpin for ContainerLogOptions
impl UnwindSafe for ContainerLogOptions
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.