pub struct EventsResult {
pub output: CommandOutput,
pub parsed_events: Vec<DockerEvent>,
}
Expand description
Result from the events command
Fields§
§output: CommandOutput
Raw command output
parsed_events: Vec<DockerEvent>
Parsed events (when JSON format is used)
Implementations§
Source§impl EventsResult
impl EventsResult
Sourcepub fn parsed_events(&self) -> &[DockerEvent]
pub fn parsed_events(&self) -> &[DockerEvent]
Get parsed events (available when JSON format is used)
Sourcepub fn raw_output(&self) -> &str
pub fn raw_output(&self) -> &str
Get the raw events output
Trait Implementations§
Source§impl Clone for EventsResult
impl Clone for EventsResult
Source§fn clone(&self) -> EventsResult
fn clone(&self) -> EventsResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EventsResult
impl RefUnwindSafe for EventsResult
impl Send for EventsResult
impl Sync for EventsResult
impl Unpin for EventsResult
impl UnwindSafe for EventsResult
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