Struct gtk4::builders::MountOperationBuilder
source · pub struct MountOperationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct MountOperation
objects.
Implementations§
source§impl MountOperationBuilder
impl MountOperationBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new MountOperationBuilder
.
sourcepub fn build(self) -> MountOperation
pub fn build(self) -> MountOperation
Build the MountOperation
.
sourcepub fn display(self, display: &impl IsA<Display>) -> Self
pub fn display(self, display: &impl IsA<Display>) -> Self
The display where dialogs will be shown.
sourcepub fn anonymous(self, anonymous: bool) -> Self
pub fn anonymous(self, anonymous: bool) -> Self
Whether to use an anonymous user when authenticating.
sourcepub fn choice(self, choice: i32) -> Self
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.
Whether the device to be unlocked is a TCRYPT hidden volume. See the VeraCrypt documentation.
sourcepub fn is_tcrypt_system_volume(self, is_tcrypt_system_volume: bool) -> Self
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.
sourcepub fn password(self, password: &str) -> Self
pub fn password(self, password: &str) -> Self
The password that is used for authentication when carrying out the mount operation.
sourcepub fn password_save(self, password_save: PasswordSave) -> Self
pub fn password_save(self, password_save: PasswordSave) -> Self
Determines if and how the password information should be saved.
sourcepub fn pim(self, pim: u32) -> Self
pub fn pim(self, pim: u32) -> Self
The VeraCrypt PIM value, when unlocking a VeraCrypt volume. See the VeraCrypt documentation.
Trait Implementations§
source§impl Clone for MountOperationBuilder
impl Clone for MountOperationBuilder
source§fn clone(&self) -> MountOperationBuilder
fn clone(&self) -> MountOperationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more