pub struct DurableService { /* private fields */ }Implementations§
Source§impl DurableService
impl DurableService
pub fn new<T>(inner: T) -> Selfwhere
T: Durable + 'static,
pub fn downcast_ref<T: Durable>(&self) -> Option<&T>
pub async fn save( &self, topic: TopicCode, message: DurableMessage, ) -> Result<(), DurableError>
pub async fn update_status( &self, topic: TopicCode, update: MessageStateUpdate, ) -> Result<(), DurableError>
pub async fn archive( &self, topic: TopicCode, message_id: MessageId, ) -> Result<(), DurableError>
pub async fn retrieve( &self, topic: TopicCode, message_id: MessageId, ) -> Result<DurableMessage, DurableError>
pub async fn batch_retrieve( &self, topic: TopicCode, query: DurableMessageQuery, ) -> Result<Vec<DurableMessage>, DurableError>
pub async fn create_topic(&self, topic: TopicConfig) -> Result<(), DurableError>
pub async fn delete_topic(&self, topic: TopicCode) -> Result<(), DurableError>
pub async fn topic_code_list(&self) -> Result<Vec<TopicCode>, DurableError>
pub async fn topic_list(&self) -> Result<Vec<TopicConfig>, DurableError>
Trait Implementations§
Source§impl Clone for DurableService
impl Clone for DurableService
Source§fn clone(&self) -> DurableService
fn clone(&self) -> DurableService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for DurableService
impl !UnwindSafe for DurableService
impl Freeze for DurableService
impl Send for DurableService
impl Sync for DurableService
impl Unpin for DurableService
impl UnsafeUnpin for DurableService
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