pub struct CaptureDescriptorRef(/* private fields */);Expand description
A borrowed reference to a CaptureDescriptor.
Implementations§
Source§impl CaptureDescriptorRef
impl CaptureDescriptorRef
Sourcepub fn set_capture_device(&self, device: &DeviceRef)
pub fn set_capture_device(&self, device: &DeviceRef)
Sourcepub fn set_capture_scope(&self, scope: &CaptureScopeRef)
pub fn set_capture_scope(&self, scope: &CaptureScopeRef)
Sourcepub fn set_capture_command_queue(&self, command_queue: &CommandQueueRef)
pub fn set_capture_command_queue(&self, command_queue: &CommandQueueRef)
Sourcepub fn output_url(&self) -> &Path
pub fn output_url(&self) -> &Path
Sourcepub fn set_output_url<P: AsRef<Path>>(&self, output_url: P)
pub fn set_output_url<P: AsRef<Path>>(&self, output_url: P)
Sourcepub fn destination(&self) -> MTLCaptureDestination
pub fn destination(&self) -> MTLCaptureDestination
Sourcepub fn set_destination(&self, destination: MTLCaptureDestination)
pub fn set_destination(&self, destination: MTLCaptureDestination)
Trait Implementations§
Source§impl AsMut<CaptureDescriptorRef> for CaptureDescriptor
impl AsMut<CaptureDescriptorRef> for CaptureDescriptor
Source§fn as_mut(&mut self) -> &mut CaptureDescriptorRef
fn as_mut(&mut self) -> &mut CaptureDescriptorRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<CaptureDescriptorRef> for CaptureDescriptor
impl AsRef<CaptureDescriptorRef> for CaptureDescriptor
Source§fn as_ref(&self) -> &CaptureDescriptorRef
fn as_ref(&self) -> &CaptureDescriptorRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<CaptureDescriptorRef> for CaptureDescriptor
impl Borrow<CaptureDescriptorRef> for CaptureDescriptor
Source§fn borrow(&self) -> &CaptureDescriptorRef
fn borrow(&self) -> &CaptureDescriptorRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<CaptureDescriptorRef> for CaptureDescriptor
impl BorrowMut<CaptureDescriptorRef> for CaptureDescriptor
Source§fn borrow_mut(&mut self) -> &mut CaptureDescriptorRef
fn borrow_mut(&mut self) -> &mut CaptureDescriptorRef
Mutably borrows from an owned value. Read more
Source§impl Debug for CaptureDescriptorRef
impl Debug for CaptureDescriptorRef
Source§impl ForeignTypeRef for CaptureDescriptorRef
impl ForeignTypeRef for CaptureDescriptorRef
Source§type CType = MTLCaptureDescriptor
type CType = MTLCaptureDescriptor
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for CaptureDescriptorRef
impl Message for CaptureDescriptorRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more
Source§impl ToOwned for CaptureDescriptorRef
impl ToOwned for CaptureDescriptorRef
Source§type Owned = CaptureDescriptor
type Owned = CaptureDescriptor
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> CaptureDescriptor
fn to_owned(&self) -> CaptureDescriptor
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more