fidl_next_bind/decoded.rs
1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use fidl_next_codec::Decoded;
6use fidl_next_protocol::Transport;
7
8use super::Method;
9
10/// A decoded request.
11pub type Request<
12 M,
13 #[cfg(feature = "fuchsia")] T = zx::Channel,
14 #[cfg(not(feature = "fuchsia"))] T,
15> = Decoded<<M as Method>::Request, <T as Transport>::RecvBuffer>;
16
17/// A decoded response.
18pub type Response<
19 M,
20 #[cfg(feature = "fuchsia")] T = zx::Channel,
21 #[cfg(not(feature = "fuchsia"))] T,
22> = Decoded<<M as Method>::Response, <T as Transport>::RecvBuffer>;