pub struct FabricClientBuilder { /* private fields */ }
Implementations§
source§impl FabricClientBuilder
impl FabricClientBuilder
sourcepub fn with_on_service_notification<T>(self, f: T) -> Self
pub fn with_on_service_notification<T>(self, f: T) -> Self
Configures the service notification handler.
See details in register_service_notification_filter
API.
If the service endpoint change matches the registered filter,
this notification is invoked
sourcepub fn with_on_client_connect<T>(self, f: T) -> Self
pub fn with_on_client_connect<T>(self, f: T) -> Self
When FabricClient connects to the SF cluster, this callback is invoked.
sourcepub fn with_on_client_disconnect<T>(self, f: T) -> Self
pub fn with_on_client_disconnect<T>(self, f: T) -> Self
When FabricClient disconnets to the SF cluster, this callback is called. This callback is not called on Drop of FabricClient.
sourcepub fn with_client_role(self, role: ClientRole) -> Self
pub fn with_client_role(self, role: ClientRole) -> Self
Sets the role of the client connection. Default is User if not set.
sourcepub fn build(self) -> FabricClient
pub fn build(self) -> FabricClient
Build the fabricclient Remarks: FabricClient connect to SF cluster when the first API call is triggered. Build/create of the object does not establish connection.
sourcepub fn build_interface<T: Interface>(self) -> T
pub fn build_interface<T: Interface>(self) -> T
Build the specific com interface of the fabric client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FabricClientBuilder
impl !RefUnwindSafe for FabricClientBuilder
impl !Send for FabricClientBuilder
impl !Sync for FabricClientBuilder
impl Unpin for FabricClientBuilder
impl !UnwindSafe for FabricClientBuilder
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