pub struct Network<'b> { /* private fields */ }
Expand description
Interface for accessing and manipulating a docker network
Implementations§
Source§impl<'b> Network<'b>
impl<'b> Network<'b>
Sourcepub fn inspect(&self) -> impl Future<Item = NetworkDetails, Error = Error>
pub fn inspect(&self) -> impl Future<Item = NetworkDetails, Error = Error>
Inspects the current docker network instance’s details
Sourcepub fn delete(&self) -> impl Future<Item = StatusCode, Error = Error>
pub fn delete(&self) -> impl Future<Item = StatusCode, Error = Error>
Delete the network instance
Sourcepub fn connect(
&self,
opts: &ContainerConnectionOptions,
) -> impl Future<Item = StatusCode, Error = Error>
pub fn connect( &self, opts: &ContainerConnectionOptions, ) -> impl Future<Item = StatusCode, Error = Error>
Connect container to network
Sourcepub fn disconnect(
&self,
opts: &ContainerConnectionOptions,
) -> impl Future<Item = StatusCode, Error = Error>
pub fn disconnect( &self, opts: &ContainerConnectionOptions, ) -> impl Future<Item = StatusCode, Error = Error>
Disconnect container to network
Auto Trait Implementations§
impl<'b> Freeze for Network<'b>
impl<'b> !RefUnwindSafe for Network<'b>
impl<'b> Send for Network<'b>
impl<'b> Sync for Network<'b>
impl<'b> Unpin for Network<'b>
impl<'b> !UnwindSafe for Network<'b>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more