Struct ExternalWaiter
pub struct ExternalWaiter { /* private fields */ }Expand description
已可靠识别的外部等待者凭据;不冒充受管任务(Task)。 只能由外部宿主在可信边界创建,宿主必须如实申报会参与的等待关系。
Implementations§
§impl ExternalWaiter
impl ExternalWaiter
pub fn new(source: Arc<dyn ExternalWaitSource>) -> Self
pub fn new(source: Arc<dyn ExternalWaitSource>) -> Self
为可信外部宿主建立不复用的等待者身份;不伪造目标任务(Task)身份。
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ExternalWaiter
impl !UnwindSafe for ExternalWaiter
impl Forget for ExternalWaiter
impl Freeze for ExternalWaiter
impl Move for ExternalWaiter
impl Send for ExternalWaiter
impl Sync for ExternalWaiter
impl Unpin for ExternalWaiter
impl UnsafeUnpin for ExternalWaiter
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