pub struct RoleWorkerContext<'a, Role: InterfaceRole> {
pub rt: &'a RuntimeHandle,
pub setup: &'a mut RoleSetup<'a>,
pub stubs: Role::Stubs,
pub hooks: &'a Role::Hooks,
pub config: &'a Role::Config,
pub init: &'a Role::Init,
}Fields§
§rt: &'a RuntimeHandle§setup: &'a mut RoleSetup<'a>§stubs: Role::Stubs§hooks: &'a Role::Hooks§config: &'a Role::Config§init: &'a Role::InitImplementations§
Source§impl<Role: InterfaceRole> RoleWorkerContext<'_, Role>
impl<Role: InterfaceRole> RoleWorkerContext<'_, Role>
pub fn raw_spawner(&self) -> &LocalSpawner
pub fn role_spawner(&self) -> &RoleSpawner
pub fn role_shutdown_signal(&self) -> &SignalTree
Auto Trait Implementations§
impl<'a, Role> Freeze for RoleWorkerContext<'a, Role>
impl<'a, Role> !RefUnwindSafe for RoleWorkerContext<'a, Role>
impl<'a, Role> !Send for RoleWorkerContext<'a, Role>
impl<'a, Role> !Sync for RoleWorkerContext<'a, Role>
impl<'a, Role> Unpin for RoleWorkerContext<'a, Role>
impl<'a, Role> !UnwindSafe for RoleWorkerContext<'a, 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