Crate sandbox

Crate sandbox 

Source
Expand description

Component sandbox traits and capability types.

Re-exports§

pub use fidl::RemotableCapability;

Modules§

fidl

Structs§

Connector
A capability that transfers another capability to a Receiver.
Dict
A capability that represents a dictionary of capabilities.
DirConnector
A capability to obtain a channel to a [fuchsia.io/Directory]. As the name suggests, this is similar to [Connector], except the channel type is always [fuchsia.io/Directory], and vfs nodes that wrap this capability should have the DIRECTORY entry_type.
DirEntry
DirEntry is a [Capability] that’s a thin wrapper over vfs::directory::entry::DirectoryEntry When externalized to FIDL, a DirEntry becomes an opaque eventpair token. This means that external users can delegate DirEntrys and put them in [Dict]s, but they cannot create their own.
DirReceiver
Type that represents the receiving end of a [DirConnector]. The [DirConnector] counterpart of Receiver. Every [DirConnector] is coupled to some Receiver to which connection requests to that [DirConnector] (or any of its clones) are delivered.
Directory
A capability that is a fuchsia.io directory.
Handle
A capability that wraps a single Zircon handle.
Message
Receiver
Type that represents the receiving end of a [Connector]. Every [Connector] is coupled to some Receiver to which connection requests to that [Connector] (or any of its clones) are delivered.
Request
Request contains metadata around how to obtain a capability.
Router
A Router is a capability that lets the holder obtain other capabilities asynchronously. Router is the object capability representation of Routable.
Unit
WeakInstanceToken
A type representing a weak pointer to a component. This is type erased because the bedrock library shouldn’t depend on Component Manager types.

Enums§

Capability
ConversionError
Data
A capability that holds immutable data.
EntryUpdate
Represents a change to a dictionary, where an entry is either added or removed.
RemoteError
Errors arising from conversion between Rust and FIDL types.
RouterResponse
Response of a Router request.
UpdateNotifierRetention
Represents whether an update notifier should be retained and thus continue to be called for future updates, or if it should be dropped and no longer be called.

Traits§

CapabilityBound
Parent trait implemented by all capability types. Useful for defining interfaces that generic over a capability type.
Connectable
Types that implement Connectable let the holder send channels to them.
DirConnectable
Types that implement DirConnectable let the holder send directory channels to them. Any DirConnectable should be wrapped in a DirConnector.
Routable
Types that implement Routable let the holder asynchronously request capabilities from them.
WeakInstanceTokenAny
The trait that WeakInstanceToken holds.

Functions§

serve_capability_store

Type Aliases§

DictKey
UpdateNotifierFn
A function that will be called when the contents of a dictionary changes. Note that this function will be called while the internal dictionary structure is locked, so it must not interact with the dictionary on which it is registered. It shouldn’t even hold a strong reference to the dictionary it’s registered on, as that’ll create a cycle and make LSAN sad.