Enum ashpd::flatpak::SpawnFlags[][src]

#[repr(u32)]
pub enum SpawnFlags {
    ClearEnv,
    Latest,
    Sandbox,
    NoNetwork,
    Kill,
    Expose,
    Emit,
}
Expand description

Flags affecting the created sandbox.

Variants

ClearEnv

Clear the environment.

Latest

Spawn the latest version of the app.

Sandbox

Spawn in a sandbox (equivalent of the sandbox option of flatpak run).

NoNetwork

Spawn without network (equivalent of the unshare=network option of flatpak run).

Kill

Kill the sandbox when the caller disappears from the session bus.

Expose

Expose the sandbox pids in the callers sandbox, only supported if using user namespaces for containers (not setuid), see the support property.

Emit

Emit a SpawnStarted signal once the sandboxed process has been fully started.

Trait Implementations

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The underlying integer type.

Return a value with all flag bits set.

Return the bits as a number type.

Return a slice that contains each variant exactly one.

Return the name of the type for debug formatting purposes. Read more

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.