pub enum TextureUpdateResult {
Created {
texture_id: TextureId,
},
Updated,
Destroyed,
Failed,
NoAction,
}Expand description
Result of a texture update operation
This enum represents the outcome of a texture update operation and contains any state changes that need to be applied to the texture data. This follows Rust’s principle of explicit state management.
Variants§
Created
Texture was successfully created
Updated
Texture was successfully updated
Destroyed
Texture was destroyed
Failed
Texture update failed
NoAction
No action was needed
Implementations§
Source§impl TextureUpdateResult
impl TextureUpdateResult
Sourcepub fn apply_to(self, texture_data: &mut TextureData)
pub fn apply_to(self, texture_data: &mut TextureData)
Apply the result to a texture data object
This method updates the texture data’s status and ID based on the operation result. This is the Rust-idiomatic way to handle state updates.
Trait Implementations§
Source§impl Clone for TextureUpdateResult
impl Clone for TextureUpdateResult
Source§fn clone(&self) -> TextureUpdateResult
fn clone(&self) -> TextureUpdateResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextureUpdateResult
impl RefUnwindSafe for TextureUpdateResult
impl Send for TextureUpdateResult
impl Sync for TextureUpdateResult
impl Unpin for TextureUpdateResult
impl UnsafeUnpin for TextureUpdateResult
impl UnwindSafe for TextureUpdateResult
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