Lines Matching refs:Scope

33     pub commands: Vec<(Scope, Command)>,
38 pub enum Scope { enum
59 impl Scope { impl
60 const ALL: &[Scope; 4] = &[
61 Scope::HostCaller,
62 Scope::GuestCaller,
63 Scope::GuestCallee,
64 Scope::HostCallee,
66 const CALLERS: &[Scope; 3] = &[Scope::HostCaller, Scope::GuestCaller, Scope::GuestCallee];
68 fn callee(&self) -> Option<Scope> { in callee() argument
70 Scope::HostCaller => Some(Scope::GuestCaller), in callee()
71 Scope::GuestCaller => Some(Scope::GuestCallee), in callee()
72 Scope::GuestCallee => Some(Scope::HostCallee), in callee()
73 Scope::HostCallee => None, in callee()
77 fn caller(&self) -> Option<Scope> { in caller() argument
79 Scope::HostCaller => None, in caller()
80 Scope::GuestCaller => Some(Scope::HostCaller), in caller()
81 Scope::GuestCallee => Some(Scope::GuestCaller), in caller()
82 Scope::HostCallee => Some(Scope::GuestCallee), in caller()
88 Scope::HostCaller | Scope::HostCallee => true, in is_host()
89 Scope::GuestCaller | Scope::GuestCallee => false, in is_host()
122 async_pending: Vec<(Scope, u32)>,
126 deferred: Vec<(Scope, Command)>,
154 handles: IndexMap<u32, (Scope, HalfState, Transferable)>,
224 fn insert(&mut self, id: u32, scope: Scope, transferable: Transferable) { in insert() argument
236 fn remove(&mut self, id: u32) -> Scope { in remove() argument
324 commands: &mut Vec<(Scope, Command)>, in generate() argument
439 let caller = *u.choose(Scope::CALLERS)?; in generate()
443 let caller = *u.choose(Scope::CALLERS)?; in generate()
448 let caller = *u.choose(Scope::CALLERS)?; in generate()
463 let complete = caller == Scope::HostCaller || u.arbitrary()?; in generate()
483 let scope = *u.choose(Scope::ALL)?; in generate()
499 CallerTake(Scope), in generate()
500 GiveCallee(Scope), in generate()
672 let scope = *u.choose(Scope::ALL)?; in generate()
685 CallerTake(Scope), in generate()
686 GiveCallee(Scope), in generate()