Struct fluvio_socket::ClientConfig
source · pub struct ClientConfig { /* private fields */ }
Expand description
Low level configuration option to directly connect to Fluvio This can bypass higher level validation required for CLI and end user application
Implementations§
source§impl ClientConfig
impl ClientConfig
pub fn new( addr: impl Into<String>, connector: DomainConnector, use_spu_local_address: bool ) -> Self
pub fn with_addr(addr: String) -> Self
pub fn addr(&self) -> &str
pub fn client_id(&self) -> &str
pub fn use_spu_local_address(&self) -> bool
pub fn set_client_id(&mut self, id: impl Into<String>)
pub fn set_addr(&mut self, domain: String)
pub async fn connect(self) -> Result<VersionedSocket, SocketError>
sourcepub fn with_prefix_sni_domain(&self, prefix: &str) -> Self
pub fn with_prefix_sni_domain(&self, prefix: &str) -> Self
create new config with prefix add to domain, this is useful for SNI
Trait Implementations§
source§impl Debug for ClientConfig
impl Debug for ClientConfig
source§impl Display for ClientConfig
impl Display for ClientConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl !UnwindSafe for ClientConfig
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