[][src]Struct wharf::opts::ContainerLogsOpts

pub struct ContainerLogsOpts { /* fields omitted */ }

Options for container logs

Methods

impl ContainerLogsOpts[src]

pub fn new() -> Self[src]

pub fn follow(&mut self, follow: bool) -> &mut Self[src]

Keep connection after returning logs.

pub fn stdout(&mut self, stdout: bool) -> &mut Self[src]

Return logs from stdout

pub fn stderr(&mut self, stderr: bool) -> &mut Self[src]

Return logs from stderr

pub fn since(&mut self, since: u32) -> &mut Self[src]

Only return logs since this time, as a UNIX timestamp

pub fn until(&mut self, until: u32) -> &mut Self[src]

Only return logs before this time, as a UNIX timestamp

pub fn timestamps(&mut self, timestamps: bool) -> &mut Self[src]

Add timestamps to every log file

pub fn tail(&mut self, tail: String) -> &mut Self[src]

Only return this number of log lines from the end of the logs. Specify as an integer or all to output all log lines

Trait Implementations

impl Default for ContainerLogsOpts[src]

impl DockerOpts for ContainerLogsOpts[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.