pub struct Descriptor {
pub version: u32,
pub objects: Vec<Object>,
pub layers: Vec<Layer>,
}Fields§
§version: u32§objects: Vec<Object>§layers: Vec<Layer>Implementations§
Source§impl Descriptor
impl Descriptor
pub fn validate(&self) -> Result<(), ValidationError>
pub fn duplicate_cloexec(&self) -> Result<OwnedDescriptor, DuplicateError>
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§impl Debug for Descriptor
impl Debug for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptor
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