pub struct NativeSource<'a> {
pub client: &'a Arc<Client>,
pub texture: &'a Arc<Texture>,
pub format: TextureFormat,
pub width: u32,
pub height: u32,
pub opaque: bool,
}Expand description
A borrowed canvas buffer. A presenter must submit its reads before returning.
Fields§
§client: &'a Arc<Client>§texture: &'a Arc<Texture>§format: TextureFormat§width: u32§height: u32§opaque: boolAuto Trait Implementations§
impl<'a> !RefUnwindSafe for NativeSource<'a>
impl<'a> !UnwindSafe for NativeSource<'a>
impl<'a> Forget for NativeSource<'a>
impl<'a> Freeze for NativeSource<'a>
impl<'a> Move for NativeSource<'a>
impl<'a> Send for NativeSource<'a>
impl<'a> Sync for NativeSource<'a>
impl<'a> Unpin for NativeSource<'a>
impl<'a> UnsafeUnpin for NativeSource<'a>
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