pub struct Memory(pub u16);Expand description
Memory allocation configuration for AWS Lambda functions, specified in megabytes.
§Validation Rules (when using the macro)
- Minimum: 128 MB
- Maximum: 10,240 MB (10 GB)
§Recommended Usage
Use the memory! macro from rusty-cdk-macros for compile-time validation:
use rusty_cdk_core::wrappers::Memory;
use rusty_cdk_macros::memory;
let mem = memory!(512);Tuple Fields§
§0: u16Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)