1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
pub mod api_utils;
pub mod containers;
pub mod version;

/// Highest level trait for a DockerAPI client
///
/// To implement this trait the only required method is
/// `request`.
/// Other docker API traits like containers and images must derive this
/// trait, so that any Client implementing the API should have a request
/// method available.
pub trait DockerApiClient {
    fn request(&self, request: &str) -> Option<Vec<u8>>;
}