Crate routing

Source

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§

DirectoryState
The accumulated state of routing a Directory capability.
RouteSource
The data returned after successfully routing a capability to its source.
StorageDeclAsRegistration
Intermediate type to masquerade as Registration-style routing start point for the storage backing directory capability.

Enums§

Never
RegistrationDecl
An umbrella type for registration decls, making it more convenient to record route maps for debug use.
RouteRequest
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 in request. 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 from use_decl.
route_to_storage_decl
Routes a Storage capability from target to its source, starting from use_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.