pub struct NeutralNativeFrame { /* private fields */ }Expand description
One move-owned producer frame.
Dropping a frame releases every image and synchronization resource still in Rust custody. Importers take this value by value when an operating-system or driver import consumes any contained descriptor.
Implementations§
Source§impl OwnedNativeFrame
impl OwnedNativeFrame
pub fn new( metadata: FrameMetadata, image: OwnedNativeImage, sync: FrameSync, ) -> OwnedNativeFrame
pub fn metadata(&self) -> FrameMetadata
pub fn kind(&self) -> OwnedNativeFrameKind
pub fn image(&self) -> &OwnedNativeImage
pub fn sync(&self) -> &FrameSync
pub fn into_parts(self) -> (FrameMetadata, OwnedNativeImage, FrameSync)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedNativeFrame
impl RefUnwindSafe for OwnedNativeFrame
impl Send for OwnedNativeFrame
impl Sync for OwnedNativeFrame
impl Unpin for OwnedNativeFrame
impl UnsafeUnpin for OwnedNativeFrame
impl UnwindSafe for OwnedNativeFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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