Struct gtk::builders::MountOperationBuilder
source · [−]pub struct MountOperationBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct MountOperation
objects.
Implementations
sourceimpl 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
.
pub fn parent(self, parent: &impl IsA<Window>) -> Self
pub fn screen(self, screen: &Screen) -> Self
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 signal::gio::MountOperation::ask-question
signal.
Available on crate feature gio_v2_58
only.
gio_v2_58
only.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
Available on crate feature gio_v2_58
only.
pub fn is_tcrypt_system_volume(self, is_tcrypt_system_volume: bool) -> Self
gio_v2_58
only.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 pim(self, pim: u32) -> Self
Available on crate feature gio_v2_58
only.
pub fn pim(self, pim: u32) -> Self
gio_v2_58
only.The VeraCrypt PIM value, when unlocking a VeraCrypt volume. See the VeraCrypt documentation.
Trait Implementations
sourceimpl Clone for MountOperationBuilder
impl Clone for MountOperationBuilder
sourcefn clone(&self) -> MountOperationBuilder
fn clone(&self) -> MountOperationBuilder
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more