fidl/
prelude.rs

1// Copyright 2021 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
5//! A "prelude" of common FIDL traits, to be used like `use fidl::prelude::*;`.
6//!
7//! This module re-exports traits using the `as _` syntax, so the glob import
8//! only brings traits into scope for resolving methods and constants. It does
9//! not import the trait names themselves.
10
11pub use crate::endpoints::{
12    ControlHandle as _, DiscoverableProtocolMarker as _, ProtocolMarker as _, Proxy as _,
13    RequestStream as _, Responder as _,
14};
15
16#[cfg(target_os = "fuchsia")]
17pub use crate::endpoints::{
18    MemberOpener as _, ServiceMarker as _, ServiceProxy as _, ServiceRequest as _,
19};
20
21pub use crate::handle::AsHandleRef as _;