2022-03-11 22:13:54 +01:00
|
|
|
use capnp::capability::Promise;
|
|
|
|
use capnp::Error;
|
|
|
|
use capnp_rpc::pry;
|
|
|
|
|
|
|
|
use api::usersystem_capnp::user_system::{
|
|
|
|
Server as UserSystem,
|
|
|
|
info, info::Server as InfoServer,
|
|
|
|
manage, manage::Server as ManageServer,
|
|
|
|
};
|
2022-03-12 17:31:53 +01:00
|
|
|
use crate::authorization::AuthorizationHandle;
|
|
|
|
use crate::session::SessionHandle;
|
2022-03-11 22:13:54 +01:00
|
|
|
|
2022-03-15 19:14:04 +01:00
|
|
|
#[derive(Clone)]
|
2022-03-11 22:13:54 +01:00
|
|
|
pub struct Users {
|
2022-03-12 17:31:53 +01:00
|
|
|
session: SessionHandle,
|
2022-03-11 22:13:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Users {
|
2022-03-12 17:31:53 +01:00
|
|
|
pub fn new(session: SessionHandle) -> Self {
|
2022-03-11 22:13:54 +01:00
|
|
|
Self {
|
2022-03-12 17:31:53 +01:00
|
|
|
session,
|
2022-03-11 22:13:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl UserSystem for Users {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
impl InfoServer for Users {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
impl ManageServer for Users {
|
|
|
|
|
|
|
|
}
|