#[non_exhaustive]
pub struct Permissions { /* private fields */ }
Expand description

The Permissions struct represents what a Session is allowed to do with a target. Some operations can be irreversable, so need to be explicitly allowed by the user.

Example

use probe_rs::Permissions;

let permissions = Permissions::new().allow_erase_all();

Implementations

Constructs a new permissions object with the default values

Allow the session to erase all memory of the chip or reset it to factory default.

Warning

This may irreversibly remove otherwise read-protected data from the device like security keys and 3rd party firmware. What happens exactly may differ per device and per probe-rs version.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.