[][src]Struct rsmq_async_lite::RsmqOptions

pub struct RsmqOptions {
    pub host: String,
    pub port: String,
    pub db: u8,
    pub realtime: bool,
    pub username: Option<String>,
    pub password: Option<String>,
    pub ns: String,
}

Options for creating a new RSMQ instance.

Fields

host: String

Redis host

port: String

Redis port

db: u8

Redis db

realtime: bool

If true, it will use redis pubsub to notify clients about new messages. More info in the general crate description

username: Option<String>

Redis username

password: Option<String>

Redis password

ns: String

RSMQ namespace (you can have several. "rsmq" by default)

Trait Implementations

impl Clone for RsmqOptions[src]

impl Debug for RsmqOptions[src]

impl Default for RsmqOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,