AUDIO
Source snapshot · 12 October 2026

API reference / ravet_graph::GraphControl

Struct GraphControl 

pub struct GraphControl<S: GraphSample = f32> { /* private fields */ }
Expand description

Unique control endpoint. Prepare/offer graphs and reclaim/drop retired graphs outside audio callbacks. Pending and retired queues each have 1..4 slots.

Implementations§

§

impl<S: GraphSample> GraphControl<S>

pub fn offer(&mut self, graph: Box<Graph<S>>) -> Result<(), GraphOfferError<S>>

Accept an already-prepared, nonfaulted graph with exact initial config and latency. No implicit reprepare, history migration, rate/layout conversion or host latency change. A rejected graph remains owned by the returned error.

pub fn take_retired(&mut self) -> Option<Box<Graph<S>>>

Transfers one retired graph to the control owner for reuse or destruction.

pub fn reclaim(&mut self) -> usize

Destroys at most the bounded retired queue capacity on this control thread.

Auto Trait Implementations§

§

impl<S = f32> !Freeze for GraphControl<S>

§

impl<S = f32> !RefUnwindSafe for GraphControl<S>

§

impl<S = f32> !Sync for GraphControl<S>

§

impl<S = f32> !UnwindSafe for GraphControl<S>

§

impl<S> Send for GraphControl<S>

§

impl<S> Unpin for GraphControl<S>

§

impl<S> UnsafeUnpin for GraphControl<S>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.