Struct aws_smithy_runtime_api::config_bag::Layer
source · pub struct Layer { /* private fields */ }Implementations§
source§impl Layer
impl Layer
pub fn put<T: Store>(&mut self, value: T::StoredType) -> &mut Self
pub fn get<T: Send + Sync + Store + 'static>(&self) -> Option<&T::StoredType>
pub fn get_mut<T: Send + Sync + Store + 'static>( &mut self ) -> Option<&mut T::StoredType>
pub fn get_mut_or_default<T: Send + Sync + Store + 'static>( &mut self ) -> &mut T::StoredTypewhere T::StoredType: Default,
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl !UnwindSafe for Layer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more