[−][src]Struct lv2_state::StatePropertyWriter
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]
&'b mut self,
urid: URID<A>,
parameter: A::WriteParameter
) -> Result<A::WriteHandle, StateErr>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,