pub struct RustackSesHandler { /* private fields */ }Expand description
Handler that bridges the HTTP layer to the SES provider.
Implementations§
Source§impl RustackSesHandler
impl RustackSesHandler
Sourcepub fn new(provider: Arc<RustackSes>) -> Self
pub fn new(provider: Arc<RustackSes>) -> Self
Create a new handler wrapping a provider.
Sourcepub fn provider(&self) -> &RustackSes
pub fn provider(&self) -> &RustackSes
Get access to the underlying provider.
Trait Implementations§
Source§impl Debug for RustackSesHandler
impl Debug for RustackSesHandler
Source§impl SesHandler for RustackSesHandler
impl SesHandler for RustackSesHandler
Source§fn handle_operation(
&self,
op: SesOperation,
body: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Response<SesResponseBody>, SesError>> + Send>>
fn handle_operation( &self, op: SesOperation, body: Bytes, ) -> Pin<Box<dyn Future<Output = Result<Response<SesResponseBody>, SesError>> + Send>>
Handle an SES v1 operation and produce an HTTP response.
Source§fn handle_v2_operation(
&self,
_method: Method,
_path: String,
_body: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Response<SesResponseBody>, SesError>> + Send>>
fn handle_v2_operation( &self, _method: Method, _path: String, _body: Bytes, ) -> Pin<Box<dyn Future<Output = Result<Response<SesResponseBody>, SesError>> + Send>>
Handle an SES v2 operation and produce an HTTP response.
Source§fn query_emails(
&self,
filter_id: Option<&str>,
filter_source: Option<&str>,
) -> String
fn query_emails( &self, filter_id: Option<&str>, filter_source: Option<&str>, ) -> String
Query sent emails for the retrospection endpoint. Read more
Source§fn clear_emails(&self, filter_id: Option<&str>)
fn clear_emails(&self, filter_id: Option<&str>)
Clear sent emails for the retrospection endpoint.
Auto Trait Implementations§
impl Freeze for RustackSesHandler
impl !RefUnwindSafe for RustackSesHandler
impl Send for RustackSesHandler
impl Sync for RustackSesHandler
impl Unpin for RustackSesHandler
impl UnsafeUnpin for RustackSesHandler
impl !UnwindSafe for RustackSesHandler
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