rlmesh::ext
Additional native utilities and interoperability features.
Preview
use rlmesh::ext;Nothing here is inherent on a shared type: these are extension traits and free items, keeping the shared types focused on their core operations. Native endpoint helpers are available through this module.
use rlmesh::BindAddress;use rlmesh::ConnectAddress;use rlmesh::ENV_ENDPOINT_TOKEN_ENV;use rlmesh::MODEL_ENDPOINT_TOKEN_ENV;use rlmesh::serve_options::ENV_ENDPOINT_TOKEN_ENV;use rlmesh::serve_options::MODEL_ENDPOINT_TOKEN_ENV;On Unix, stale-socket cleanup is also available here.
use rlmesh::remove_stale_socket;Modules
Structs
- CancelTokenPreviewCancellation reported as
KeyboardInterrupt. - EnvServerOptionsPreviewThe Rust- and C-only fields of an env server's options, reached through
EnvServerOptions::ext. - ModelServeOptionsPreviewThe Rust- and C-only fields of a model serve, reached through
ModelServeOptions::ext. - StoragePreviewReference-counted, immutable byte storage shared by one or more
Tensorviews.
Enums
- BindAddressPreviewA server-side address to bind a listener to.
- ConnectAddressPreviewA client-side address for connecting to a running server.
Traits
- SpaceExtPreviewWhy a value is not a member of a space.
- TensorExtPreviewAdditional tensor constructors and layout access.
Functions
- dtype_size()PreviewThe size of one element of
dtype, in bytes. - env_tags_from_json()Preview
EnvTagsfrom its wire JSON (the formEnvTags::to_dictwrites), checked for unknown fields. - model_spec_from_json()Preview
ModelSpecfrom its wire JSON (the formModelSpec::to_dictwrites), checked for unknown fields. - register_entrypoint()PreviewRegister a trusted custom-input entrypoint for subsequent adapter resolves.
- remote_env_with_token()PreviewA
RemoteEnvthat sendstokenon every request. - remote_env_with_token_async()PreviewThe async twin of
remote_env_with_token. - remote_model_with_token()PreviewA
RemoteModelwhose sessions sendtokenon every model request. - remote_vector_env_with_token()PreviewA
RemoteVectorEnvthat sendstokenon every request. - remote_vector_env_with_token_async()PreviewThe async twin of
remote_vector_env_with_token. - remove_stale_socket()PreviewRemove a leftover Unix-domain socket file before binding.
- reset_lanes()PreviewPartial reset: reset the listed lanes (an empty slice resets all of them; a per-lane seed list aligns with
env_indices) and return the batched observation of every lane and the info with every lane'sepisode_ids. - reset_lanes_async()PreviewThe async twin of
reset_lanes.