multiversx_sc/api/uncallable/
endpoint_arg_api_uncallable.rs

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
use crate::api::{endpoint_arg_api::EndpointArgumentApiImpl, EndpointArgumentApi};

use super::UncallableApi;

impl EndpointArgumentApi for UncallableApi {
    type EndpointArgumentApiImpl = UncallableApi;

    fn argument_api_impl() -> Self::EndpointArgumentApiImpl {
        unreachable!()
    }
}

impl EndpointArgumentApiImpl for UncallableApi {
    fn get_num_arguments(&self) -> i32 {
        unreachable!()
    }

    fn load_argument_managed_buffer(&self, _arg_id: i32, _dest: Self::ManagedBufferHandle) {
        unreachable!()
    }

    fn load_callback_closure_buffer(&self, _dest: Self::ManagedBufferHandle) {
        unreachable!()
    }
}