pub struct Docker {
pub version: String,
pub api_version: String,
pub os_version: String,
pub stream: UnixStream,
}
Fields§
§version: String
§api_version: String
§os_version: String
§stream: UnixStream
Implementations§
Source§impl Docker
impl Docker
pub fn new() -> Result<Self, Error>
pub fn head(&mut self, api_end: &str) -> DockerResult
pub fn get(&mut self, api_end: &str) -> DockerResult
pub fn post(&mut self, api_end: &str, body: &str) -> DockerResult
pub fn put(&mut self, api_end: &str, body: &str) -> DockerResult
pub fn delete(&mut self, api_end: &str, body: &str) -> DockerResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Docker
impl RefUnwindSafe for Docker
impl Send for Docker
impl Sync for Docker
impl Unpin for Docker
impl UnwindSafe for Docker
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