gtk4::builders

Struct MountOperationBuilder

Source
pub struct MountOperationBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct MountOperation objects.

Implementations§

Source§

impl MountOperationBuilder

Source

pub fn display(self, display: &impl IsA<Display>) -> Self

The display where dialogs will be shown.

Source

pub fn parent(self, parent: &impl IsA<Window>) -> Self

The parent window.

Source

pub fn anonymous(self, anonymous: bool) -> Self

Whether to use an anonymous user when authenticating.

Source

pub fn choice(self, choice: i32) -> Self

The index of the user’s choice when a question is asked during the mount operation. See the #GMountOperation::ask-question signal.

Source

pub fn domain(self, domain: impl Into<GString>) -> Self

The domain to use for the mount operation.

Source

pub fn is_tcrypt_hidden_volume(self, is_tcrypt_hidden_volume: bool) -> Self

Whether the device to be unlocked is a TCRYPT hidden volume. See the VeraCrypt documentation.

Source

pub fn is_tcrypt_system_volume(self, is_tcrypt_system_volume: bool) -> Self

Whether the device to be unlocked is a TCRYPT system volume. In this context, a system volume is a volume with a bootloader and operating system installed. This is only supported for Windows operating systems. For further documentation, see the VeraCrypt documentation.

Source

pub fn password(self, password: impl Into<GString>) -> Self

The password that is used for authentication when carrying out the mount operation.

Source

pub fn password_save(self, password_save: PasswordSave) -> Self

Determines if and how the password information should be saved.

Source

pub fn pim(self, pim: u32) -> Self

The VeraCrypt PIM value, when unlocking a VeraCrypt volume. See the VeraCrypt documentation.

Source

pub fn username(self, username: impl Into<GString>) -> Self

The user name that is used for authentication when carrying out the mount operation.

Source

pub fn build(self) -> MountOperation

Build the MountOperation.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.