pub struct S3Detection {
pub versioning: Result<S3BucketVersioning, Arc<StorageError>>,
pub settings: S3Settings,
pub results: Vec<S3ProbeResult>,
}Expand description
What detection observed at one location (§20.7).
Fields§
§versioning: Result<S3BucketVersioning, Arc<StorageError>>Bucket versioning, or the native refusal that left it unknown.
settings: S3SettingsSettings derived from the results; prefill advanced settings with them.
results: Vec<S3ProbeResult>One observation per probe, in the order run.
Implementations§
Source§impl S3Detection
impl S3Detection
Sourcepub fn held(&self, probe: S3Probe) -> bool
pub fn held(&self, probe: S3Probe) -> bool
Whether this probe’s behavior held; an unrun probe did not.
Sourcepub fn check(&self, settings: &S3Settings) -> Result<(), StorageCheckError>
pub fn check(&self, settings: &S3Settings) -> Result<(), StorageCheckError>
Refuses settings that contradict the results, naming the first failed check as setup would: CreateOnce, MultipartCreateOnce, PublicationTime, then Behavior.
Sourcepub fn resolve(
&self,
location: StorageConfig,
) -> Result<StorageConfig, StorageCheckError>
pub fn resolve( &self, location: StorageConfig, ) -> Result<StorageConfig, StorageCheckError>
The location setup records, after checking versioning support and its effective settings: an uncatalogued endpoint naming no profile gets these detected settings as its custom profile; any other location is kept as given.
Trait Implementations§
Source§impl Clone for S3Detection
impl Clone for S3Detection
Source§fn clone(&self) -> S3Detection
fn clone(&self) -> S3Detection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for S3Detection
impl !RefUnwindSafe for S3Detection
impl Send for S3Detection
impl Sync for S3Detection
impl Unpin for S3Detection
impl UnsafeUnpin for S3Detection
impl !UnwindSafe for S3Detection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.