Struct shiplift::service::Service[][src]

pub struct Service<'docker> { /* fields omitted */ }

Interface for accessing and manipulating a named docker volume

API Reference:


impl<'docker> Service<'docker>[src]

pub fn new<S>(docker: &'docker Docker, name: S) -> Self where
    S: Into<String>, 

Exports an interface for operations that may be performed against a named service

pub async fn create(&self, opts: &ServiceOptions) -> Result<ServiceCreateInfo>[src]

Creates a new service from ServiceOptions

API Reference:

pub async fn inspect(&self) -> Result<ServiceDetails>[src]

Inspects a named service’s details

API Reference:

pub async fn delete(&self) -> Result<()>[src]

pub fn logs(
    opts: &LogsOptions
) -> impl Stream<Item = Result<TtyChunk>> + Unpin + 'docker

Returns a stream of logs from a service

API Reference:

Auto Trait Implementations

impl<'docker> !RefUnwindSafe for Service<'docker>

impl<'docker> Send for Service<'docker>

impl<'docker> Sync for Service<'docker>

impl<'docker> Unpin for Service<'docker>

impl<'docker> !UnwindSafe for Service<'docker>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.