Skip to main content

runtime_capabilities/
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 dictionary;
11mod dir_connector;
12mod handle;
13mod instance_token;
14mod receiver;
15mod router;
16
17#[cfg(target_os = "fuchsia")]
18pub mod fidl;
19
20pub use self::capability::{Capability, CapabilityBound, ConversionError, RemoteError};
21pub use self::connector::{Connectable, Connector, Message};
22pub use self::data::Data;
23pub use self::dictionary::{
24    Dictionary, EntryUpdate, Key as DictKey, UpdateNotifierFn, UpdateNotifierRetention,
25};
26pub use self::dir_connector::{DirConnectable, DirConnector, DirConnectorMessage};
27pub use self::handle::Handle;
28pub use self::instance_token::{WeakInstanceToken, WeakInstanceTokenAny};
29pub use self::receiver::{DirReceiver, Receiver};
30pub use self::router::{Request, Routable, Router, RouterResponse};
31
32#[cfg(target_os = "fuchsia")]
33pub use {self::fidl::store::serve_capability_store, fidl::RemotableCapability};