sandbox/
lib.rs

1// Copyright 2023 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//! Component sandbox traits and capability types.
6
7mod capability;
8mod connector;
9mod data;
10mod dict;
11mod dir_connector;
12mod dir_entry;
13mod directory;
14mod handle;
15mod instance_token;
16mod receiver;
17mod router;
18mod unit;
19
20#[cfg(target_os = "fuchsia")]
21pub mod fidl;
22
23pub use self::capability::{Capability, CapabilityBound, ConversionError, RemoteError};
24pub use self::connector::{Connectable, Connector, Message};
25pub use self::data::Data;
26pub use self::dict::{
27    Dict, EntryUpdate, Key as DictKey, UpdateNotifierFn, UpdateNotifierRetention,
28};
29pub use self::dir_connector::{DirConnectable, DirConnector};
30pub use self::dir_entry::DirEntry;
31pub use self::directory::Directory;
32pub use self::handle::Handle;
33pub use self::instance_token::{WeakInstanceToken, WeakInstanceTokenAny};
34pub use self::receiver::{DirReceiver, Receiver};
35pub use self::router::{Request, Routable, Router, RouterResponse};
36pub use self::unit::Unit;
37
38#[cfg(target_os = "fuchsia")]
39pub use {self::fidl::store::serve_capability_store, fidl::RemotableCapability};