[−][src]Struct rsmq_async::Rsmq
Implementations
impl Rsmq
[src]
pub async fn new(options: RsmqOptions) -> RsmqResult<Rsmq>
[src]
Creates a new RSMQ instance, including its connection
pub fn new_with_connection(options: RsmqOptions, connection: Connection) -> Rsmq
[src]
Special method for when you already have a redis-rs connection and you don't want redis_async to create a new one.
Trait Implementations
impl Debug for Rsmq
[src]
impl RsmqConnection for Rsmq
[src]
pub fn change_message_visibility<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
qname: &'life1 str,
message_id: &'life2 str,
seconds_hidden: u64
) -> Pin<Box<dyn Future<Output = RsmqResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str,
message_id: &'life2 str,
seconds_hidden: u64
) -> Pin<Box<dyn Future<Output = RsmqResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn create_queue<'life0, 'life1, 'async_trait>(
&'life0 mut self,
qname: &'life1 str,
seconds_hidden: Option<u32>,
delay: Option<u32>,
maxsize: Option<i32>
) -> Pin<Box<dyn Future<Output = RsmqResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str,
seconds_hidden: Option<u32>,
delay: Option<u32>,
maxsize: Option<i32>
) -> Pin<Box<dyn Future<Output = RsmqResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn delete_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
qname: &'life1 str,
id: &'life2 str
) -> Pin<Box<dyn Future<Output = RsmqResult<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str,
id: &'life2 str
) -> Pin<Box<dyn Future<Output = RsmqResult<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn delete_queue<'life0, 'life1, 'async_trait>(
&'life0 mut self,
qname: &'life1 str
) -> Pin<Box<dyn Future<Output = RsmqResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str
) -> Pin<Box<dyn Future<Output = RsmqResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn get_queue_attributes<'life0, 'life1, 'async_trait>(
&'life0 mut self,
qname: &'life1 str
) -> Pin<Box<dyn Future<Output = RsmqResult<RsmqQueueAttributes>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str
) -> Pin<Box<dyn Future<Output = RsmqResult<RsmqQueueAttributes>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn list_queues<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = RsmqResult<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = RsmqResult<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn pop_message<'life0, 'life1, 'async_trait, E: TryFrom<RedisBytes, Error = Vec<u8>>>(
&'life0 mut self,
qname: &'life1 str
) -> Pin<Box<dyn Future<Output = RsmqResult<Option<RsmqMessage<E>>>> + Send + 'async_trait>> where
E: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str
) -> Pin<Box<dyn Future<Output = RsmqResult<Option<RsmqMessage<E>>>> + Send + 'async_trait>> where
E: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn receive_message<'life0, 'life1, 'async_trait, E: TryFrom<RedisBytes, Error = Vec<u8>>>(
&'life0 mut self,
qname: &'life1 str,
seconds_hidden: Option<u64>
) -> Pin<Box<dyn Future<Output = RsmqResult<Option<RsmqMessage<E>>>> + Send + 'async_trait>> where
E: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str,
seconds_hidden: Option<u64>
) -> Pin<Box<dyn Future<Output = RsmqResult<Option<RsmqMessage<E>>>> + Send + 'async_trait>> where
E: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn send_message<'life0, 'life1, 'async_trait, E: Into<RedisBytes> + Send>(
&'life0 mut self,
qname: &'life1 str,
message: E,
delay: Option<u64>
) -> Pin<Box<dyn Future<Output = RsmqResult<String>> + Send + 'async_trait>> where
E: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str,
message: E,
delay: Option<u64>
) -> Pin<Box<dyn Future<Output = RsmqResult<String>> + Send + 'async_trait>> where
E: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn set_queue_attributes<'life0, 'life1, 'async_trait>(
&'life0 mut self,
qname: &'life1 str,
seconds_hidden: Option<u64>,
delay: Option<u64>,
maxsize: Option<i64>
) -> Pin<Box<dyn Future<Output = RsmqResult<RsmqQueueAttributes>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
qname: &'life1 str,
seconds_hidden: Option<u64>,
delay: Option<u64>,
maxsize: Option<i64>
) -> Pin<Box<dyn Future<Output = RsmqResult<RsmqQueueAttributes>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Rsmq
[src]
impl Send for Rsmq
[src]
impl Sync for Rsmq
[src]
impl Unpin for Rsmq
[src]
impl !UnwindSafe for Rsmq
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,