pub struct ImportedGeometryProgram { /* private fields */ }Expand description
All output is held until successful completion; an error cannot publish a partially imported scene. Native and generated hosts use the same owner.
Implementations§
Source§impl ImportedGeometryProgram
impl ImportedGeometryProgram
pub fn new( store: u64, revision: u64, definitions: Vec<ImportedDefinition>, ) -> Result<Self, SceneError>
pub fn single(definition: ImportedDefinition) -> Self
Sourcepub fn next_operation(&mut self) -> Result<Option<&ReadyOperation>, SceneError>
pub fn next_operation(&mut self) -> Result<Option<&ReadyOperation>, SceneError>
The owner keeps the Ready alive. A caller can execute it after releasing all format-adapter buffers; completion never accepts caller-supplied source.
Sourcepub fn complete(
&mut self,
executed: ExecutedOperation,
) -> Result<(), SceneError>
pub fn complete( &mut self, executed: ExecutedOperation, ) -> Result<(), SceneError>
A stale/foreign completion is refused without consuming the issued work. Variant matching prevents a points result replacing an admitted mesh.
pub fn fail(&mut self, error: ImportError)
pub fn finish(self) -> Result<Vec<ImportedAssembly>, SceneError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImportedGeometryProgram
impl RefUnwindSafe for ImportedGeometryProgram
impl Send for ImportedGeometryProgram
impl Sync for ImportedGeometryProgram
impl Unpin for ImportedGeometryProgram
impl UnwindSafe for ImportedGeometryProgram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more