pub struct SledOutboxStore {
tree: Tree,
encryption: Option<StorageEncryption>,
}Expand description
An OutboxStore implementation using sled for storage.
Fields§
§tree: Tree§encryption: Option<StorageEncryption>Implementations§
Source§impl SledOutboxStore
impl SledOutboxStore
Sourcefn serialize_message(&self, msg: &Message) -> Result<Vec<u8>>
fn serialize_message(&self, msg: &Message) -> Result<Vec<u8>>
Serializes a Message and encrypts it if encryption is enabled.
Sourcefn deserialize_message(&self, data: &[u8]) -> Result<Message>
fn deserialize_message(&self, data: &[u8]) -> Result<Message>
Decrypts and deserializes a Message.
Trait Implementations§
Source§impl OutboxStore for SledOutboxStore
impl OutboxStore for SledOutboxStore
Source§fn add_pending<'life0, 'async_trait>(
&'life0 self,
msg: Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_pending<'life0, 'async_trait>(
&'life0 self,
msg: Message,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Adds a new message to the outbox. Read more
Source§fn get_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pending<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Message>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves all pending messages from the outbox. Read more
Auto Trait Implementations§
impl Freeze for SledOutboxStore
impl !RefUnwindSafe for SledOutboxStore
impl Send for SledOutboxStore
impl Sync for SledOutboxStore
impl Unpin for SledOutboxStore
impl !UnwindSafe for SledOutboxStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more