pub struct Server { /* private fields */ }Expand description
The main server structure.
Implementations§
Trait Implementations§
Source§impl Server for Server
impl Server for Server
Source§fn version(
self: Rc<Server>,
params: VersionParams,
results: VersionResults,
) -> Promise<(), Error>
fn version( self: Rc<Server>, params: VersionParams, results: VersionResults, ) -> Promise<(), Error>
Retrieve version information from the server.
Source§fn create_container(
self: Rc<Server>,
params: CreateContainerParams,
results: CreateContainerResults,
) -> Promise<(), Error>
fn create_container( self: Rc<Server>, params: CreateContainerParams, results: CreateContainerResults, ) -> Promise<(), Error>
Create a new container for the provided parameters.
Source§fn exec_sync_container(
self: Rc<Server>,
params: ExecSyncContainerParams,
results: ExecSyncContainerResults,
) -> Promise<(), Error>
fn exec_sync_container( self: Rc<Server>, params: ExecSyncContainerParams, results: ExecSyncContainerResults, ) -> Promise<(), Error>
Execute a command in sync inside of a container.
Source§fn attach_container(
self: Rc<Server>,
params: AttachContainerParams,
_: AttachContainerResults,
) -> Promise<(), Error>
fn attach_container( self: Rc<Server>, params: AttachContainerParams, _: AttachContainerResults, ) -> Promise<(), Error>
Attach to a running container.
Source§fn reopen_log_container(
self: Rc<Server>,
params: ReopenLogContainerParams,
_: ReopenLogContainerResults,
) -> Promise<(), Error>
fn reopen_log_container( self: Rc<Server>, params: ReopenLogContainerParams, _: ReopenLogContainerResults, ) -> Promise<(), Error>
Rotate all log drivers for a running container.
Source§fn set_window_size_container(
self: Rc<Server>,
params: SetWindowSizeContainerParams,
_: SetWindowSizeContainerResults,
) -> Promise<(), Error>
fn set_window_size_container( self: Rc<Server>, params: SetWindowSizeContainerParams, _: SetWindowSizeContainerResults, ) -> Promise<(), Error>
Adjust the window size of a container running inside of a terminal.
Source§fn create_namespaces(
self: Rc<Server>,
params: CreateNamespacesParams,
results: CreateNamespacesResults,
) -> Promise<(), Error>
fn create_namespaces( self: Rc<Server>, params: CreateNamespacesParams, results: CreateNamespacesResults, ) -> Promise<(), Error>
Create a new set of namespaces.
fn start_fd_socket( self: Rc<Server>, params: StartFdSocketParams, results: StartFdSocketResults, ) -> Promise<(), Error>
fn serve_exec_container( self: Rc<Server>, params: ServeExecContainerParams, results: ServeExecContainerResults, ) -> Promise<(), Error>
fn serve_attach_container( self: Rc<Server>, params: ServeAttachContainerParams, results: ServeAttachContainerResults, ) -> Promise<(), Error>
fn serve_port_forward_container( self: Rc<Server>, params: ServePortForwardContainerParams, results: ServePortForwardContainerResults, ) -> Promise<(), Error>
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl !UnwindSafe for Server
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].