Struct aws_sdk_greengrassv2::model::LambdaContainerParams
source · [−]#[non_exhaustive]pub struct LambdaContainerParams {
pub memory_size_in_kb: Option<i32>,
pub mount_ro_sysfs: Option<bool>,
pub volumes: Option<Vec<LambdaVolumeMount>>,
pub devices: Option<Vec<LambdaDeviceMount>>,
}
Expand description
Contains information about a container in which Lambda functions run on Greengrass core devices.
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.memory_size_in_kb: Option<i32>
The memory size of the container, expressed in kilobytes.
Default: 16384
(16 MB)
mount_ro_sysfs: Option<bool>
Whether or not the container can read information from the device's /sys
folder.
Default: false
volumes: Option<Vec<LambdaVolumeMount>>
The list of volumes that the container can access.
devices: Option<Vec<LambdaDeviceMount>>
The list of system devices that the container can access.
Implementations
sourceimpl LambdaContainerParams
impl LambdaContainerParams
sourcepub fn memory_size_in_kb(&self) -> Option<i32>
pub fn memory_size_in_kb(&self) -> Option<i32>
The memory size of the container, expressed in kilobytes.
Default: 16384
(16 MB)
sourcepub fn mount_ro_sysfs(&self) -> Option<bool>
pub fn mount_ro_sysfs(&self) -> Option<bool>
Whether or not the container can read information from the device's /sys
folder.
Default: false
sourcepub fn volumes(&self) -> Option<&[LambdaVolumeMount]>
pub fn volumes(&self) -> Option<&[LambdaVolumeMount]>
The list of volumes that the container can access.
sourcepub fn devices(&self) -> Option<&[LambdaDeviceMount]>
pub fn devices(&self) -> Option<&[LambdaDeviceMount]>
The list of system devices that the container can access.
sourceimpl LambdaContainerParams
impl LambdaContainerParams
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LambdaContainerParams
Trait Implementations
sourceimpl Clone for LambdaContainerParams
impl Clone for LambdaContainerParams
sourcefn clone(&self) -> LambdaContainerParams
fn clone(&self) -> LambdaContainerParams
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 LambdaContainerParams
impl Debug for LambdaContainerParams
sourceimpl PartialEq<LambdaContainerParams> for LambdaContainerParams
impl PartialEq<LambdaContainerParams> for LambdaContainerParams
sourcefn eq(&self, other: &LambdaContainerParams) -> bool
fn eq(&self, other: &LambdaContainerParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LambdaContainerParams) -> bool
fn ne(&self, other: &LambdaContainerParams) -> bool
This method tests for !=
.
impl StructuralPartialEq for LambdaContainerParams
Auto Trait Implementations
impl RefUnwindSafe for LambdaContainerParams
impl Send for LambdaContainerParams
impl Sync for LambdaContainerParams
impl Unpin for LambdaContainerParams
impl UnwindSafe for LambdaContainerParams
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