1 //! Classic ACL facade
2 
3 use crate::acl::classic::AclManager;
4 
5 module! {
6     facade_module,
7     providers {
8         ClassicAclFacadeService => provide_facade,
9     }
10 }
11 
12 #[provides]
provide_facade(acl: AclManager) -> ClassicAclFacadeService13 async fn provide_facade(acl: AclManager) -> ClassicAclFacadeService {
14     ClassicAclFacadeService { acl }
15 }
16 
17 pub struct ClassicAclFacadeService {
18     acl: AclManager,
19 }
20 
21 impl AclManagerFacade for ClassicAclFacadeService {
create_connection( &mut self, _ctx: RpcContext<'_>, mut _data: ConnectionMsg, _sink: ServerStreamingSink<ConnectionEvent>, )22     fn create_connection(
23         &mut self,
24         _ctx: RpcContext<'_>,
25         mut _data: ConnectionMsg,
26         _sink: ServerStreamingSink<ConnectionEvent>,
27     ) {
28         unimplemented!();
29     }
30 
cancel_connection( &mut self, _ctx: RpcContext<'_>, mut _data: ConnectionMsg, _sink: UnarySink<Empty>, )31     fn cancel_connection(
32         &mut self,
33         _ctx: RpcContext<'_>,
34         mut _data: ConnectionMsg,
35         _sink: UnarySink<Empty>,
36     ) {
37         unimplemented!();
38     }
39 
disconnect(&mut self, _ctx: RpcContext<'_>, mut _data: HandleMsg, _sink: UnarySink<Empty>)40     fn disconnect(&mut self, _ctx: RpcContext<'_>, mut _data: HandleMsg, _sink: UnarySink<Empty>) {
41         unimplemented!();
42     }
43 
disconnect(&mut self, _ctx: RpcContext<'_>, mut _data: PolicyMsg, _sink: UnarySink<Empty>)44     fn disconnect(&mut self, _ctx: RpcContext<'_>, mut _data: PolicyMsg, _sink: UnarySink<Empty>) {
45         unimplemented!();
46     }
47 
authentication_requested( &mut self, _ctx: RpcContext<'_>, mut _data: HandleMsg, _sink: UnarySink<Empty>, )48     fn authentication_requested(
49         &mut self,
50         _ctx: RpcContext<'_>,
51         mut _data: HandleMsg,
52         _sink: UnarySink<Empty>,
53     ) {
54         unimplemented!();
55     }
56 
connection_command( &mut self, _ctx: RpcContext<'_>, mut _data: ConnectionCommandMsg, _sink: UnarySink<Empty>, )57     fn connection_command(
58         &mut self,
59         _ctx: RpcContext<'_>,
60         mut _data: ConnectionCommandMsg,
61         _sink: UnarySink<Empty>,
62     ) {
63         unimplemented!();
64     }
65 
switch_role(&mut self, _ctx: RpcContext<'_>, mut _data: RoleMsg, _sink: UnarySink<Empty>)66     fn switch_role(&mut self, _ctx: RpcContext<'_>, mut _data: RoleMsg, _sink: UnarySink<Empty>) {
67         unimplemented!();
68     }
69 
send_acl_data(&mut self, _ctx: RpcContext<'_>, mut _data: AclData, _sink: UnarySink<Empty>)70     fn send_acl_data(&mut self, _ctx: RpcContext<'_>, mut _data: AclData, _sink: UnarySink<Empty>) {
71         unimplemented!();
72     }
73 
fetch_acl_data( &mut self, _ctx: RpcContext<'_>, mut _data: HandleMsg, _sink: ServerStreamingSink<AclData>, )74     fn fetch_acl_data(
75         &mut self,
76         _ctx: RpcContext<'_>,
77         mut _data: HandleMsg,
78         _sink: ServerStreamingSink<AclData>,
79     ) {
80         unimplemented!();
81     }
82 
fetch_incoming_connection( &mut self, _ctx: RpcContext<'_>, mut _data: Empty, _sink: ServerStreamingSink<ConnectionEvent>, )83     fn fetch_incoming_connection(
84         &mut self,
85         _ctx: RpcContext<'_>,
86         mut _data: Empty,
87         _sink: ServerStreamingSink<ConnectionEvent>,
88     ) {
89         unimplemented!();
90     }
91 }
92