pub struct ConnectionFactoryOptions {
pub options: HashMap<String, OptionValue>,
}
Fields§
§options: HashMap<String, OptionValue>
Implementations§
Source§impl ConnectionFactoryOptions
impl ConnectionFactoryOptions
pub fn new() -> Self
pub fn from(options: HashMap<String, OptionValue>) -> Self
pub fn get_value(&self, option: &str) -> Option<&OptionValue>
pub fn try_as_bool(&self, option: &str) -> Result<bool>
pub fn try_as_i32(&self, option: &str) -> Result<i32>
pub fn has_option(&self, option: &str) -> bool
pub fn parse<S: AsRef<str>>(url: S) -> Result<Self>
Trait Implementations§
Source§impl Clone for ConnectionFactoryOptions
impl Clone for ConnectionFactoryOptions
Source§fn clone(&self) -> ConnectionFactoryOptions
fn clone(&self) -> ConnectionFactoryOptions
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 ConnectionFactoryOptions
impl Debug for ConnectionFactoryOptions
Auto Trait Implementations§
impl Freeze for ConnectionFactoryOptions
impl RefUnwindSafe for ConnectionFactoryOptions
impl Send for ConnectionFactoryOptions
impl Sync for ConnectionFactoryOptions
impl Unpin for ConnectionFactoryOptions
impl UnwindSafe for ConnectionFactoryOptions
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