pub trait UuidSelectable: Sized {
    fn try_uuid(&mut self) -> Result<Uuid>;
    fn list() -> Vec<Self>;

    fn having(uuid: Uuid) -> Result<Self> { ... }
}

Required Methods

Returns the UUID associated with the thing, if it has a UUID.

Note: This may modify the thing as it might need to communicate with it.

Returns all of the available things.

Provided Methods

Returns the thing with the given UUID.

Default implementation; replace for better error messages.

Implementors