Struct webrender_traits::WebRenderNetApi
source · pub struct WebRenderNetApi(pub(crate) IpcSender<NetToCompositorMsg>);
Expand description
A mechanism to send messages from networking to the WebRender instance.
Tuple Fields§
§0: IpcSender<NetToCompositorMsg>
Implementations§
source§impl WebRenderNetApi
impl WebRenderNetApi
pub fn new(sender: IpcSender<NetToCompositorMsg>) -> Self
pub fn generate_image_key(&self) -> ImageKey
pub fn add_image( &self, key: ImageKey, descriptor: ImageDescriptor, data: ImageData, )
Trait Implementations§
source§impl Clone for WebRenderNetApi
impl Clone for WebRenderNetApi
source§fn clone(&self) -> WebRenderNetApi
fn clone(&self) -> WebRenderNetApi
Returns a copy 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 moresource§impl<'de> Deserialize<'de> for WebRenderNetApi
impl<'de> Deserialize<'de> for WebRenderNetApi
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebRenderNetApi
impl !RefUnwindSafe for WebRenderNetApi
impl Send for WebRenderNetApi
impl !Sync for WebRenderNetApi
impl Unpin for WebRenderNetApi
impl UnwindSafe for WebRenderNetApi
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