Struct aws_sdk_greengrassv2::model::LambdaDeviceMount
source · [−]#[non_exhaustive]pub struct LambdaDeviceMount {
pub path: Option<String>,
pub permission: Option<LambdaFilesystemPermission>,
pub add_group_owner: Option<bool>,
}
Expand description
Contains information about a device that Linux processes in a container can access.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.path: Option<String>
The mount path for the device in the file system.
permission: Option<LambdaFilesystemPermission>
The permission to access the device: read/only (ro
) or read/write (rw
).
Default: ro
add_group_owner: Option<bool>
Whether or not to add the component's system user as an owner of the device.
Default: false
Implementations
sourceimpl LambdaDeviceMount
impl LambdaDeviceMount
sourcepub fn permission(&self) -> Option<&LambdaFilesystemPermission>
pub fn permission(&self) -> Option<&LambdaFilesystemPermission>
The permission to access the device: read/only (ro
) or read/write (rw
).
Default: ro
sourcepub fn add_group_owner(&self) -> Option<bool>
pub fn add_group_owner(&self) -> Option<bool>
Whether or not to add the component's system user as an owner of the device.
Default: false
sourceimpl LambdaDeviceMount
impl LambdaDeviceMount
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LambdaDeviceMount
Trait Implementations
sourceimpl Clone for LambdaDeviceMount
impl Clone for LambdaDeviceMount
sourcefn clone(&self) -> LambdaDeviceMount
fn clone(&self) -> LambdaDeviceMount
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 Debug for LambdaDeviceMount
impl Debug for LambdaDeviceMount
sourceimpl PartialEq<LambdaDeviceMount> for LambdaDeviceMount
impl PartialEq<LambdaDeviceMount> for LambdaDeviceMount
sourcefn eq(&self, other: &LambdaDeviceMount) -> bool
fn eq(&self, other: &LambdaDeviceMount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LambdaDeviceMount) -> bool
fn ne(&self, other: &LambdaDeviceMount) -> bool
This method tests for !=
.
impl StructuralPartialEq for LambdaDeviceMount
Auto Trait Implementations
impl RefUnwindSafe for LambdaDeviceMount
impl Send for LambdaDeviceMount
impl Sync for LambdaDeviceMount
impl Unpin for LambdaDeviceMount
impl UnwindSafe for LambdaDeviceMount
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more