Skip to content

Commit 2306536

Browse files
committed
Fix build
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 41b0ace commit 2306536

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

conmon-rs/server/src/rpc.rs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ macro_rules! capnp_vec_path {
7272
};
7373
}
7474

75+
#[allow(refining_impl_trait_reachable)]
7576
impl conmon::Server for Server {
7677
/// Retrieve version information from the server.
7778
fn version(
78-
&mut self,
79+
self: std::rc::Rc<Server>,
7980
params: conmon::VersionParams,
8081
mut results: conmon::VersionResults,
8182
) -> Promise<(), capnp::Error> {
@@ -103,7 +104,7 @@ impl conmon::Server for Server {
103104

104105
/// Create a new container for the provided parameters.
105106
fn create_container(
106-
&mut self,
107+
self: std::rc::Rc<Server>,
107108
params: conmon::CreateContainerParams,
108109
mut results: conmon::CreateContainerResults,
109110
) -> Promise<(), capnp::Error> {
@@ -204,7 +205,7 @@ impl conmon::Server for Server {
204205

205206
/// Execute a command in sync inside of a container.
206207
fn exec_sync_container(
207-
&mut self,
208+
self: std::rc::Rc<Server>,
208209
params: conmon::ExecSyncContainerParams,
209210
mut results: conmon::ExecSyncContainerResults,
210211
) -> Promise<(), capnp::Error> {
@@ -306,7 +307,7 @@ impl conmon::Server for Server {
306307

307308
/// Attach to a running container.
308309
fn attach_container(
309-
&mut self,
310+
self: std::rc::Rc<Server>,
310311
params: conmon::AttachContainerParams,
311312
_: conmon::AttachContainerResults,
312313
) -> Promise<(), capnp::Error> {
@@ -345,7 +346,7 @@ impl conmon::Server for Server {
345346

346347
/// Rotate all log drivers for a running container.
347348
fn reopen_log_container(
348-
&mut self,
349+
self: std::rc::Rc<Server>,
349350
params: conmon::ReopenLogContainerParams,
350351
_: conmon::ReopenLogContainerResults,
351352
) -> Promise<(), capnp::Error> {
@@ -368,7 +369,7 @@ impl conmon::Server for Server {
368369

369370
/// Adjust the window size of a container running inside of a terminal.
370371
fn set_window_size_container(
371-
&mut self,
372+
self: std::rc::Rc<Server>,
372373
params: conmon::SetWindowSizeContainerParams,
373374
_: conmon::SetWindowSizeContainerResults,
374375
) -> Promise<(), capnp::Error> {
@@ -393,7 +394,7 @@ impl conmon::Server for Server {
393394

394395
/// Create a new set of namespaces.
395396
fn create_namespaces(
396-
&mut self,
397+
self: std::rc::Rc<Server>,
397398
params: conmon::CreateNamespacesParams,
398399
mut results: conmon::CreateNamespacesResults,
399400
) -> Promise<(), capnp::Error> {
@@ -436,7 +437,7 @@ impl conmon::Server for Server {
436437
}
437438

438439
fn start_fd_socket(
439-
&mut self,
440+
self: std::rc::Rc<Server>,
440441
params: conmon::StartFdSocketParams,
441442
mut results: conmon::StartFdSocketResults,
442443
) -> Promise<(), capnp::Error> {
@@ -468,7 +469,7 @@ impl conmon::Server for Server {
468469
}
469470

470471
fn serve_exec_container(
471-
&mut self,
472+
self: std::rc::Rc<Server>,
472473
params: conmon::ServeExecContainerParams,
473474
mut results: conmon::ServeExecContainerResults,
474475
) -> Promise<(), capnp::Error> {
@@ -536,7 +537,7 @@ impl conmon::Server for Server {
536537
}
537538

538539
fn serve_attach_container(
539-
&mut self,
540+
self: std::rc::Rc<Server>,
540541
params: conmon::ServeAttachContainerParams,
541542
mut results: conmon::ServeAttachContainerResults,
542543
) -> Promise<(), capnp::Error> {
@@ -581,7 +582,7 @@ impl conmon::Server for Server {
581582
}
582583

583584
fn serve_port_forward_container(
584-
&mut self,
585+
self: std::rc::Rc<Server>,
585586
params: conmon::ServePortForwardContainerParams,
586587
mut results: conmon::ServePortForwardContainerResults,
587588
) -> Promise<(), capnp::Error> {

0 commit comments

Comments
 (0)