pub struct PipelitAdapter { /* private fields */ }Expand description
Pipelit backend adapter - fire-and-forget webhook
Implementations§
Source§impl PipelitAdapter
impl PipelitAdapter
pub fn new( target: &BackendConfig, _gateway_ctx: Option<&GatewayContext>, _credential_config: Option<&Value>, ) -> Result<Self, BackendError>
Trait Implementations§
Source§impl BackendAdapter for PipelitAdapter
impl BackendAdapter for PipelitAdapter
Source§fn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 InboundMessage,
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 InboundMessage,
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a normalized message to the backend
Source§fn supports_files(&self) -> bool
fn supports_files(&self) -> bool
Whether this backend supports file attachments
Auto Trait Implementations§
impl Freeze for PipelitAdapter
impl !RefUnwindSafe for PipelitAdapter
impl Send for PipelitAdapter
impl Sync for PipelitAdapter
impl Unpin for PipelitAdapter
impl UnsafeUnpin for PipelitAdapter
impl !UnwindSafe for PipelitAdapter
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