pub struct ClientBuilder<T> { /* private fields */ }
Expand description
Use this builder to construct a Client struct.
Implementations§
Source§impl<T> ClientBuilder<T>
impl<T> ClientBuilder<T>
Sourcepub fn new(stream: T) -> Self
pub fn new(stream: T) -> Self
Build a Client struct that will read/write from/to the given stream.
Creates a ClientBuilder which can be used to create a Client which will read/write from/to the given stream. The stream is expected to be a type which can read from and write to an established TCP connection to the KMIP server. In production the stream should also perform TLS de/encryption on the data read from/written to the stream.
The stream
argument must implement the read and write traits which the Client will use to read/write
from/to the stream.
Sourcepub fn with_credentials(
self,
username: String,
password: Option<String>,
) -> Self
pub fn with_credentials( self, username: String, password: Option<String>, ) -> Self
Configure the Client to do include username/password authentication credentials in KMIP requests.
Sourcepub fn with_reader_config(self, reader_config: Config) -> Self
pub fn with_reader_config(self, reader_config: Config) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ClientBuilder<T>
impl<T> !RefUnwindSafe for ClientBuilder<T>
impl<T> Send for ClientBuilder<T>where
T: Send,
impl<T> !Sync for ClientBuilder<T>
impl<T> Unpin for ClientBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for ClientBuilder<T>where
T: UnwindSafe,
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