pub struct Networks<'a> { /* private fields */ }
Expand description
Interface for docker network
Implementations§
Source§impl<'a> Networks<'a>
impl<'a> Networks<'a>
Sourcepub fn new(docker: &'a Docker) -> Networks<'a>
pub fn new(docker: &'a Docker) -> Networks<'a>
Exports an interface for interacting with docker Networks
Sourcepub fn list(
&self,
opts: &NetworkListOptions,
) -> impl Future<Item = Vec<NetworkInfo>, Error = Error>
pub fn list( &self, opts: &NetworkListOptions, ) -> impl Future<Item = Vec<NetworkInfo>, Error = Error>
List the docker networks on the current docker host
Sourcepub fn get<'b>(&self, id: &'b str) -> Network<'a, 'b>
pub fn get<'b>(&self, id: &'b str) -> Network<'a, 'b>
Returns a reference to a set of operations available to a specific network instance
Sourcepub fn create(
&self,
opts: &NetworkCreateOptions,
) -> impl Future<Item = NetworkCreateInfo, Error = Error>
pub fn create( &self, opts: &NetworkCreateOptions, ) -> impl Future<Item = NetworkCreateInfo, Error = Error>
Create a new Network instance
Auto Trait Implementations§
impl<'a> Freeze for Networks<'a>
impl<'a> !RefUnwindSafe for Networks<'a>
impl<'a> Send for Networks<'a>
impl<'a> Sync for Networks<'a>
impl<'a> Unpin for Networks<'a>
impl<'a> !UnwindSafe for Networks<'a>
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