Struct memfd::Memfd[][src]

pub struct Memfd { /* fields omitted */ }

An anonymous volatile file, with sealing capabilities.

Methods

impl Memfd
[src]

Try to convert a File object into a Memfd.

This requires transferring ownership of the File. If the underlying file-descriptor is compatible with memfd/sealing, it returns a proper Memfd object, otherwise it transfers back ownership of the original File for further usage.

Return a File object for this memfd.

Consume this Memfd, returning the underlying File.

Return the current set of seals.

Add a single seal to the existing set of seals.

Add some seals to the existing set of seals.

Trait Implementations

impl Debug for Memfd
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Memfd

impl Sync for Memfd