Enum webrender::render_api::ApiMsg
source · pub enum ApiMsg {
CloneApi(Sender<IdNamespace>),
CloneApiByClient(IdNamespace),
AddDocument(DocumentId, DeviceIntSize),
UpdateDocuments(Vec<Box<TransactionMsg>>),
MemoryPressure,
ReportMemory(Sender<Box<MemoryReport>>),
DebugCommand(DebugCommand),
SceneBuilderResult(SceneBuilderResult),
}
Expand description
Message sent by the RenderApi
to the render backend thread.
Variants§
CloneApi(Sender<IdNamespace>)
Adds a new document namespace.
CloneApiByClient(IdNamespace)
Adds a new document namespace.
AddDocument(DocumentId, DeviceIntSize)
Adds a new document with given initial size.
UpdateDocuments(Vec<Box<TransactionMsg>>)
A message targeted at a particular document.
MemoryPressure
Flush from the caches anything that isn’t necessary, to free some memory.
ReportMemory(Sender<Box<MemoryReport>>)
Collects a memory report.
DebugCommand(DebugCommand)
Change debugging options.
SceneBuilderResult(SceneBuilderResult)
Message from the scene builder thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiMsg
impl !RefUnwindSafe for ApiMsg
impl Send for ApiMsg
impl !Sync for ApiMsg
impl Unpin for ApiMsg
impl !UnwindSafe for ApiMsg
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
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>
Converts
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>
Converts
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