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,
pub protocol: ProtocolVersion,
}Expand description
Options for creating a new RSMQ instance.
Fields§
§host: StringRedis host
port: u16Redis port
db: u8Redis db
realtime: boolIf 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: StringRSMQ namespace (you can have several. “rsmq” by default)
protocol: ProtocolVersionRedisa protocol. Defaults to RESP2
Trait Implementations§
Source§impl Clone for RsmqOptions
impl Clone for RsmqOptions
Source§fn clone(&self) -> RsmqOptions
fn clone(&self) -> RsmqOptions
Returns a duplicate 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 Freeze for RsmqOptions
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