pub struct SessionConfig<'a> { /* private fields */ }Implementations§
Source§impl<'a> SessionConfig<'a>
impl<'a> SessionConfig<'a>
pub fn new() -> Self
pub fn target(self, target: &'a str) -> Self
pub fn username(self, username: &str) -> Result<Self>
pub fn password(self, password: &str) -> Result<Self>
pub fn locale(self, locale: Locale) -> Self
pub fn force_refresh(self, force_refresh: bool) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn connect(&self) -> Result<Session>
Auto Trait Implementations§
impl<'a> Freeze for SessionConfig<'a>
impl<'a> RefUnwindSafe for SessionConfig<'a>
impl<'a> Send for SessionConfig<'a>
impl<'a> Sync for SessionConfig<'a>
impl<'a> Unpin for SessionConfig<'a>
impl<'a> UnwindSafe for SessionConfig<'a>
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