pub enum ResourceUpdate {
Show 13 variants
    AddImage(AddImage),
    UpdateImage(UpdateImage),
    DeleteImage(ImageKey),
    AddBlobImage(AddBlobImage),
    UpdateBlobImage(UpdateBlobImage),
    DeleteBlobImage(BlobImageKey),
    SetBlobImageVisibleArea(BlobImageKey, DeviceIntRect),
    AddSnapshotImage(AddSnapshotImage),
    DeleteSnapshotImage(SnapshotImageKey),
    AddFont(AddFont),
    DeleteFont(FontKey),
    AddFontInstance(AddFontInstance),
    DeleteFontInstance(FontInstanceKey),
}Expand description
Update of a persistent resource in WebRender.
ResourceUpdate changes keep theirs effect across display list changes.
Variants§
AddImage(AddImage)
See AddImage.
UpdateImage(UpdateImage)
See UpdateImage.
DeleteImage(ImageKey)
Delete an existing image resource.
It is invalid to continue referring to the image key in any display list
in the transaction that contains the DeleteImage message and subsequent
transactions.
AddBlobImage(AddBlobImage)
See AddBlobImage.
UpdateBlobImage(UpdateBlobImage)
See UpdateBlobImage.
DeleteBlobImage(BlobImageKey)
Delete existing blob image resource.
SetBlobImageVisibleArea(BlobImageKey, DeviceIntRect)
See AddBlobImage::visible_area.
AddSnapshotImage(AddSnapshotImage)
See AddSnapshotImage.
DeleteSnapshotImage(SnapshotImageKey)
See AddSnapshotImage.
AddFont(AddFont)
See AddFont.
DeleteFont(FontKey)
Deletes an already existing font resource.
It is invalid to continue referring to the font key in any display list
in the transaction that contains the DeleteImage message and subsequent
transactions.
AddFontInstance(AddFontInstance)
See AddFontInstance.
DeleteFontInstance(FontInstanceKey)
Deletes an already existing font instance resource.
It is invalid to continue referring to the font instance in any display
list in the transaction that contains the DeleteImage message and
subsequent transactions.
Trait Implementations§
Source§impl Clone for ResourceUpdate
 
impl Clone for ResourceUpdate
Source§fn clone(&self) -> ResourceUpdate
 
fn clone(&self) -> ResourceUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceUpdate
 
impl Debug for ResourceUpdate
Source§impl<'de> Deserialize<'de> for ResourceUpdate
 
impl<'de> Deserialize<'de> for ResourceUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ResourceUpdate
impl RefUnwindSafe for ResourceUpdate
impl Send for ResourceUpdate
impl Sync for ResourceUpdate
impl Unpin for ResourceUpdate
impl UnwindSafe for ResourceUpdate
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more