Struct vulkano::sync::fence::ImportFenceFdInfo
source · pub struct ImportFenceFdInfo {
pub flags: FenceImportFlags,
pub handle_type: ExternalFenceHandleType,
pub file: Option<File>,
pub _ne: NonExhaustive,
}
Fields§
§flags: FenceImportFlags
Additional parameters for the import operation.
If handle_type
has copy transference, this must include the temporary
flag.
The default value is FenceImportFlags::empty()
.
handle_type: ExternalFenceHandleType
The handle type of file
.
There is no default value.
file: Option<File>
The file to import the fence from.
If handle_type
is ExternalFenceHandleType::SyncFd
, then file
can be None
.
Instead of an imported file descriptor, a dummy file descriptor -1
is used,
which represents a fence that is always signaled.
The default value is None
, which must be overridden if handle_type
is not
ExternalFenceHandleType::SyncFd
.
_ne: NonExhaustive
Implementations§
source§impl ImportFenceFdInfo
impl ImportFenceFdInfo
sourcepub fn handle_type(handle_type: ExternalFenceHandleType) -> Self
pub fn handle_type(handle_type: ExternalFenceHandleType) -> Self
Returns an ImportFenceFdInfo
with the specified handle_type
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ImportFenceFdInfo
impl Send for ImportFenceFdInfo
impl Sync for ImportFenceFdInfo
impl Unpin for ImportFenceFdInfo
impl UnwindSafe for ImportFenceFdInfo
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