Skip to main content

Server

Trait Server 

Source
pub trait Server: 'static {
    // Provided methods
    fn version(
        self: Rc<Self>,
        _: VersionParams,
        _: VersionResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn create_container(
        self: Rc<Self>,
        _: CreateContainerParams,
        _: CreateContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn exec_sync_container(
        self: Rc<Self>,
        _: ExecSyncContainerParams,
        _: ExecSyncContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn attach_container(
        self: Rc<Self>,
        _: AttachContainerParams,
        _: AttachContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn reopen_log_container(
        self: Rc<Self>,
        _: ReopenLogContainerParams,
        _: ReopenLogContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn set_window_size_container(
        self: Rc<Self>,
        _: SetWindowSizeContainerParams,
        _: SetWindowSizeContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn create_namespaces(
        self: Rc<Self>,
        _: CreateNamespacesParams,
        _: CreateNamespacesResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn start_fd_socket(
        self: Rc<Self>,
        _: StartFdSocketParams,
        _: StartFdSocketResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn serve_exec_container(
        self: Rc<Self>,
        _: ServeExecContainerParams,
        _: ServeExecContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn serve_attach_container(
        self: Rc<Self>,
        _: ServeAttachContainerParams,
        _: ServeAttachContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
    fn serve_port_forward_container(
        self: Rc<Self>,
        _: ServePortForwardContainerParams,
        _: ServePortForwardContainerResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static { ... }
}

Provided Methods§

Source

fn version( self: Rc<Self>, _: VersionParams, _: VersionResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn create_container( self: Rc<Self>, _: CreateContainerParams, _: CreateContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn exec_sync_container( self: Rc<Self>, _: ExecSyncContainerParams, _: ExecSyncContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn attach_container( self: Rc<Self>, _: AttachContainerParams, _: AttachContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn reopen_log_container( self: Rc<Self>, _: ReopenLogContainerParams, _: ReopenLogContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn set_window_size_container( self: Rc<Self>, _: SetWindowSizeContainerParams, _: SetWindowSizeContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn create_namespaces( self: Rc<Self>, _: CreateNamespacesParams, _: CreateNamespacesResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn start_fd_socket( self: Rc<Self>, _: StartFdSocketParams, _: StartFdSocketResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn serve_exec_container( self: Rc<Self>, _: ServeExecContainerParams, _: ServeExecContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn serve_attach_container( self: Rc<Self>, _: ServeAttachContainerParams, _: ServeAttachContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Source

fn serve_port_forward_container( self: Rc<Self>, _: ServePortForwardContainerParams, _: ServePortForwardContainerResults, ) -> impl Future<Output = Result<(), Error>> + 'static

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§