[][src]Struct lv2_state::StatePropertyWriter

pub struct StatePropertyWriter<'a> { /* fields omitted */ }

Writing handle for properties.

Implementations

impl<'a> StatePropertyWriter<'a>[src]

pub fn new(head: SpaceHead<'a>) -> Self[src]

Create a new property writer that uses the given space head.

pub fn init<'b, A: Atom<'a, 'b>>(
    &'b mut self,
    urid: URID<A>,
    parameter: A::WriteParameter
) -> Result<A::WriteHandle, StateErr>
[src]

Initialize the property.

This works like any other atom writer: You have to provide the URID of the atom type you want to write, as well as the type-specific parameter. If the property hasn't been initialized before, it will be initialized and the writing handle is returned. Otherwise, Err(StateErr::Unknown) is returned.

Auto Trait Implementations

impl<'a> RefUnwindSafe for StatePropertyWriter<'a>

impl<'a> Send for StatePropertyWriter<'a>

impl<'a> Sync for StatePropertyWriter<'a>

impl<'a> Unpin for StatePropertyWriter<'a>

impl<'a> !UnwindSafe for StatePropertyWriter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.