1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::{
api::{LogApi, LogApiImpl},
types::heap::ArgBuffer,
};
use super::UncallableApi;
impl LogApi for UncallableApi {
type LogApiImpl = UncallableApi;
fn log_api_impl() -> Self::LogApiImpl {
unreachable!()
}
}
impl LogApiImpl for UncallableApi {
fn write_event_log(&self, _topics_buffer: &ArgBuffer, _data: &[u8]) {
unreachable!()
}
fn write_legacy_log(&self, _topics: &[[u8; 32]], _data: &[u8]) {
unreachable!()
}
fn managed_write_log(
&self,
_topics_handle: Self::ManagedBufferHandle,
_data_handle: Self::ManagedBufferHandle,
) {
unreachable!()
}
}