pub struct ValueRegistry { /* private fields */ }Expand description
RepositoryId → state-reader factory. Generated code registers a factory per
valuetype; an optional CodebaseResolver resolves unknown RepositoryIds
via the codebase URL.
Implementations§
Source§impl ValueRegistry
impl ValueRegistry
Sourcepub fn register(&mut self, repo_id: impl Into<String>, ctor: ValueCtor)
pub fn register(&mut self, repo_id: impl Into<String>, ctor: ValueCtor)
Registers a state-reader factory for a RepositoryId.
Sourcepub fn set_codebase_resolver(&mut self, resolver: CodebaseResolver)
pub fn set_codebase_resolver(&mut self, resolver: CodebaseResolver)
Sets the codebase resolver: for RepositoryIds without a static factory it
is queried with (codebase_url, repo_id).
Trait Implementations§
Source§impl Default for ValueRegistry
impl Default for ValueRegistry
Source§fn default() -> ValueRegistry
fn default() -> ValueRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ValueRegistry
impl !Send for ValueRegistry
impl !Sync for ValueRegistry
impl !UnwindSafe for ValueRegistry
impl Freeze for ValueRegistry
impl Unpin for ValueRegistry
impl UnsafeUnpin for ValueRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more