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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for MountOperationBuilder
impl Default for MountOperationBuilder
sourcefn default() -> MountOperationBuilder
fn default() -> MountOperationBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MountOperationBuilder
impl !Send for MountOperationBuilder
impl !Sync for MountOperationBuilder
impl Unpin for MountOperationBuilder
impl UnwindSafe for MountOperationBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more