pub struct StartRoleHandle<Role: InterfaceRole> {
pub rt: RuntimeHandle,
pub config: RoleConfig<Role>,
pub role_shutdown_signal: SignalTree,
/* private fields */
}Fields§
§rt: RuntimeHandle§config: RoleConfig<Role>§role_shutdown_signal: SignalTreeImplementations§
Source§impl<Role: InterfaceRole> StartRoleHandle<Role>
impl<Role: InterfaceRole> StartRoleHandle<Role>
pub async fn on_worker_group( self, worker_group: WorkerGroup, role_start_fn: impl RoleStartFn<Role> + Clone + Send + Sync + 'static, ) -> Self
pub fn local(self, role_start_fn: impl RoleStartFn<Role>) -> Role::Hooks
Auto Trait Implementations§
impl<Role> Freeze for StartRoleHandle<Role>
impl<Role> !RefUnwindSafe for StartRoleHandle<Role>
impl<Role> Send for StartRoleHandle<Role>
impl<Role> Sync for StartRoleHandle<Role>
impl<Role> Unpin for StartRoleHandle<Role>
impl<Role> !UnwindSafe for StartRoleHandle<Role>
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