PropertyAccessor

Trait PropertyAccessor 

Source
pub trait PropertyAccessor {
    // Required methods
    fn read_property(&self, path: &[&str]) -> Option<Bytes>;
    fn set_property(&self, path: &[&str], value: Option<&[u8]>);
}
Expand description

Abstraction that enables property manipulation

Required Methods§

Source

fn read_property(&self, path: &[&str]) -> Option<Bytes>

Returns a property, if not missing

Source

fn set_property(&self, path: &[&str], value: Option<&[u8]>)

Overrides a given property with a given value

Implementors§