pub struct ManagerBuilder { /* private fields */ }
Expand description
Flexible builder for a Manager
.
This sample should be all you ever need to use. It is identical to Manager::default
but does not panic on failure.
let manager = ManagerBuilder::new().build()?;
Implementations§
Source§impl ManagerBuilder
impl ManagerBuilder
Sourcepub fn with_port(self, port: u16) -> Self
pub fn with_port(self, port: u16) -> Self
Use the given port for the extension server instead of the default.
If this is not called before build
, then the “PARAMETERS_SECRETS_EXTENSION_HTTP_PORT”
environment variable will be used, or 2773 if this is not set.
Sourcepub fn with_token(self, token: String) -> Self
pub fn with_token(self, token: String) -> Self
Use the given token to authenticate with the extension server instead of the default.
If this is not called before build
, then the “AWS_SESSION_TOKEN”
environment variable will be used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManagerBuilder
impl RefUnwindSafe for ManagerBuilder
impl Send for ManagerBuilder
impl Sync for ManagerBuilder
impl Unpin for ManagerBuilder
impl UnwindSafe for ManagerBuilder
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