Struct rsmq_async::RsmqOptions
source · pub struct RsmqOptions {
pub host: String,
pub port: u16,
pub db: u8,
pub realtime: bool,
pub username: Option<String>,
pub password: Option<String>,
pub ns: String,
}
Expand description
Options for creating a new RSMQ instance.
Fields§
§host: String
Redis host
port: u16
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§
source§impl Clone for RsmqOptions
impl Clone for RsmqOptions
source§fn clone(&self) -> RsmqOptions
fn clone(&self) -> RsmqOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RsmqOptions
impl Debug for RsmqOptions
Auto Trait Implementations§
impl RefUnwindSafe for RsmqOptions
impl Send for RsmqOptions
impl Sync for RsmqOptions
impl Unpin for RsmqOptions
impl UnwindSafe for RsmqOptions
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