pub struct ClientBroker<T> { /* private fields */ }Implementations§
Source§impl<T> ClientBroker<T>
impl<T> ClientBroker<T>
Sourcepub fn init(
network_topology: StdArc<NetworkTopology>,
container_state: StdArc<AtomicUsize>,
container_state_notify: StdArc<Notify>,
) -> Self
pub fn init( network_topology: StdArc<NetworkTopology>, container_state: StdArc<AtomicUsize>, container_state_notify: StdArc<Notify>, ) -> Self
Initializes the ClientBroker with the network topology, container state,
and state notification mechanism.
§Arguments
network_topology- A reference-counted arc for network connections.container_state- Atomic state of the container lifecycle.container_state_notify- State notification for component updates.
pub async fn handle_message(&self, message: ClientBrokerMessage<T>)
pub async fn forward_shutdown(&mut self, message: T)
pub async fn shutdown(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ClientBroker<T>
impl<T> !RefUnwindSafe for ClientBroker<T>
impl<T> Send for ClientBroker<T>where
T: Send,
impl<T> Sync for ClientBroker<T>where
T: Send,
impl<T> Unpin for ClientBroker<T>
impl<T> UnsafeUnpin for ClientBroker<T>
impl<T> !UnwindSafe for ClientBroker<T>
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