Struct rutabaga_gfx::rutabaga_os::sys::linux::descriptor::OwnedDescriptor
source · pub struct OwnedDescriptor {
owned: OwnedFd,
}
Fields§
§owned: OwnedFd
Implementations§
source§impl OwnedDescriptor
impl OwnedDescriptor
pub fn try_clone(&self) -> Result<OwnedDescriptor, Error>
pub fn determine_type(&self) -> Result<DescriptorType, Error>
Trait Implementations§
source§impl AsFd for OwnedDescriptor
impl AsFd for OwnedDescriptor
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
source§impl AsRawDescriptor for OwnedDescriptor
impl AsRawDescriptor for OwnedDescriptor
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
source§impl From<File> for OwnedDescriptor
impl From<File> for OwnedDescriptor
source§fn from(f: File) -> OwnedDescriptor
fn from(f: File) -> OwnedDescriptor
Converts to this type from the input type.
source§impl From<OwnedFd> for OwnedDescriptor
impl From<OwnedFd> for OwnedDescriptor
source§fn from(o: OwnedFd) -> OwnedDescriptor
fn from(o: OwnedFd) -> OwnedDescriptor
Converts to this type from the input type.
source§fn from(sm: SharedMemory) -> OwnedDescriptor
fn from(sm: SharedMemory) -> OwnedDescriptor
Converts to this type from the input type.
source§impl FromRawDescriptor for OwnedDescriptor
impl FromRawDescriptor for OwnedDescriptor
source§unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self
unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self
Safety Read more
source§impl IntoRawDescriptor for OwnedDescriptor
impl IntoRawDescriptor for OwnedDescriptor
fn into_raw_descriptor(self) -> RawDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for OwnedDescriptor
impl Send for OwnedDescriptor
impl Sync for OwnedDescriptor
impl Unpin for OwnedDescriptor
impl UnwindSafe for OwnedDescriptor
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