Skip to main content

Placer

Trait Placer 

Source
pub trait Placer:
    Send
    + Sync
    + Debug {
    // Required method
    fn place(
        &self,
        operation: &str,
        child: (&str, &str),
        parent: (&str, &str),
    ) -> Result<(), String>;
}
Expand description

Places a resource under its parent in Lys.

Required Methods§

Source

fn place( &self, operation: &str, child: (&str, &str), parent: (&str, &str), ) -> Result<(), String>

Places child (kind, id) under parent (kind, id) once, under operation.

§Errors

Lys’s refusal by its name, or why it could not be asked.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§