aws_sdk_s3::waiters::bucket_exists

Type Alias BucketExistsFinalPoll

Source
pub type BucketExistsFinalPoll = FinalPoll<HeadBucketOutput, SdkError<HeadBucketError, HttpResponse>>;
Expand description

Successful return type for the bucket_exists waiter.

Aliased Type§

struct BucketExistsFinalPoll { /* private fields */ }

Implementations

Source§

impl<O, E> FinalPoll<O, E>

Source

pub fn new(result: Result<O, E>) -> FinalPoll<O, E>

Creates a new FinalPoll from a result.

Source

pub fn into_result(self) -> Result<O, E>

Grants ownership of the underlying result.

Source

pub fn as_result(&self) -> Result<&O, &E>

Returns the underlying result.

Source

pub fn map<O2, F>(self, mapper: F) -> FinalPoll<O2, E>
where F: FnOnce(O) -> O2,

Maps the operation type with a function.

Source

pub fn map_err<E2, F>(self, mapper: F) -> FinalPoll<O, E2>
where F: FnOnce(E) -> E2,

Maps the error type with a function.

Trait Implementations

Source§

impl<O, E> Debug for FinalPoll<O, E>
where O: Debug, E: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more