AUDIO
Source snapshot · 12 October 2026

API reference / paragraph_workspace::model::Model

Struct Model 

pub struct Model {
    fonts: [TextFont; 3],
    source_name: String,
    state: State,
    revision: u32,
    delivery: u32,
    refresh_exhausted: bool,
    prepared: Prepared,
    diagnostic: Option<Error>,
    pub snapshot: String,
}

Fields§

§fonts: [TextFont; 3]§source_name: String§state: State§revision: u32§delivery: u32§refresh_exhausted: bool§prepared: Prepared§diagnostic: Option<Error>§snapshot: String

Implementations§

§

impl Model

pub fn new(fonts: [TextFont; 3], source_name: &str) -> Result<Self, Error>

pub fn delivery(&self) -> u32

pub fn geometry(&self) -> &str

pub(crate) fn fixture_delivery_near_limit(&mut self)

Own-window fixture injection avoids iterating four billion refreshes; it changes only private delivery bookkeeping, not model/image state.

pub fn state(&self) -> State

pub fn revision(&self) -> u32

pub fn payload(&self) -> &str

pub fn diagnostic(&self) -> Option<Error>

pub fn message(&mut self, json: &str) -> bool

pub fn change(&mut self, next: State) -> Result<(), Error>

fn finish_change( &mut self, next: State, revision: u32, prepared: Result<Prepared, Error>, ) -> Result<(), Error>

pub fn resize(&mut self, width: f64) -> Result<(), Error>

Consumer margin policy only: finite content width minus40, floor/clamp80..640. Too-small/invalid sizes reject; unchanged live dimensions need no transition.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Model

§

impl !UnwindSafe for Model

§

impl Freeze for Model

§

impl Send for Model

§

impl Sync for Model

§

impl Unpin for Model

§

impl UnsafeUnpin for Model

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> ErasedDestructor for Twhere T: 'static,

§

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.