pub struct ControllerRegistry { /* private fields */ }Implementations§
Source§impl ControllerRegistry
impl ControllerRegistry
pub fn new() -> ControllerRegistry
pub fn register( &mut self, manifest: ControllerManifest, ) -> Result<(), DagMlError>
pub fn get(&self, controller_id: &ControllerId) -> Option<&ControllerManifest>
pub fn manifests(&self) -> impl Iterator<Item = &ControllerManifest>
pub fn resolve_for_node( &self, node: &NodeSpec, ) -> Result<ControllerManifest, DagMlError>
pub fn infer_operator_kind( &self, operator: &Value, ) -> Result<Option<NodeKind>, DagMlError>
Trait Implementations§
Source§impl Clone for ControllerRegistry
impl Clone for ControllerRegistry
Source§fn clone(&self) -> ControllerRegistry
fn clone(&self) -> ControllerRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControllerRegistry
impl Debug for ControllerRegistry
Source§impl Default for ControllerRegistry
impl Default for ControllerRegistry
Source§fn default() -> ControllerRegistry
fn default() -> ControllerRegistry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControllerRegistry
impl<'de> Deserialize<'de> for ControllerRegistry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControllerRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControllerRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControllerRegistry
Source§impl PartialEq for ControllerRegistry
impl PartialEq for ControllerRegistry
Source§fn eq(&self, other: &ControllerRegistry) -> bool
fn eq(&self, other: &ControllerRegistry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControllerRegistry
impl Serialize for ControllerRegistry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ControllerRegistry
Auto Trait Implementations§
impl Freeze for ControllerRegistry
impl RefUnwindSafe for ControllerRegistry
impl Send for ControllerRegistry
impl Sync for ControllerRegistry
impl Unpin for ControllerRegistry
impl UnsafeUnpin for ControllerRegistry
impl UnwindSafe for ControllerRegistry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.