pub struct KittyBuilder { /* private fields */ }Implementations§
Source§impl KittyBuilder
impl KittyBuilder
pub fn new() -> Self
pub fn socket_path<P: AsRef<Path>>(self, path: P) -> Self
pub fn timeout(self, duration: Duration) -> Self
pub fn password(self, password: impl Into<String>) -> Self
pub fn public_key(self, public_key: impl Into<String>) -> Self
pub async fn connect(self) -> Result<Kitty, KittyError>
Auto Trait Implementations§
impl Freeze for KittyBuilder
impl RefUnwindSafe for KittyBuilder
impl Send for KittyBuilder
impl Sync for KittyBuilder
impl Unpin for KittyBuilder
impl UnwindSafe for KittyBuilder
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