Re-exports§
pub use bedrock::dict_ext::DictExt;
pub use bedrock::dict_ext::GenericRouterResponse;
pub use bedrock::lazy_get::LazyGet;
pub use bedrock::weak_instance_token_ext::test_invalid_instance_token;
pub use bedrock::weak_instance_token_ext::WeakInstanceTokenExt;
pub use bedrock::with_availability::WithAvailability;
pub use bedrock::with_default::WithDefault;
pub use bedrock::with_error_reporter::WithErrorReporter;
Modules§
- availability
- bedrock
- capability_
source - component_
instance - config
- environment
- error
- event
- legacy_
router - Each routing method’s name begins with
route_*
, and is an async function that returns Result<CapabilitySource, RoutingError>, i.e. finds the capability source by walking the route declarations and resolving components if necessary. Routing always walks in the direction from the consuming side to the providing side. - mapper
- path
- Utilities for manipulating paths.
- policy
- resolving
- rights
- walk_
state
Structs§
- Directory
State - The accumulated state of routing a Directory capability.
- Route
Source - The data returned after successfully routing a capability to its source.
- Storage
Decl AsRegistration - Intermediate type to masquerade as Registration-style routing start point for the storage backing directory capability.
Enums§
- Never
- Registration
Decl - An umbrella type for registration decls, making it more convenient to record route maps for debug use.
- Route
Request - A request to route a capability, together with the data needed to do so.
Functions§
- route_
capability - Performs a debug route from the
target
for the capability defined inrequest
. The source of the route is returned if the route is valid, otherwise a routing error is returned. - route_
event_ stream - Routes an EventStream capability from
target
to its source, starting fromuse_decl
. - route_
to_ storage_ decl - Routes a Storage capability from
target
to its source, starting fromuse_decl
. Returns the StorageDecl and the storage component’s instance. - verify_
instance_ in_ component_ id_ index - Verifies that the given component is in the index if its
storage_id
is StaticInstanceId.