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