Struct mountpoint_s3_client::Endpoint
source · #[non_exhaustive]pub struct Endpoint { /* private fields */ }Implementations§
source§impl Endpoint
impl Endpoint
sourcepub fn from_region(
region: &str,
addressing_style: AddressingStyle
) -> Result<Self, EndpointError>
pub fn from_region( region: &str, addressing_style: AddressingStyle ) -> Result<Self, EndpointError>
Create a new endpoint for the given S3 region. This method automatically resolves the right endpoint URI to target.
sourcepub fn from_uri(
uri: &str,
addressing_style: AddressingStyle
) -> Result<Self, EndpointError>
pub fn from_uri( uri: &str, addressing_style: AddressingStyle ) -> Result<Self, EndpointError>
Create a new endpoint with a manually specified URI.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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