pub enum ThreadPolicy {
OrbCtrl,
SingleThread,
MainThread,
}Expand description
PortableServer::ThreadPolicyValue.
Variants§
OrbCtrl
ORB_CTRL_MODEL: requests run on the upcall thread pool, in
parallel and in no particular order.
SingleThread
SINGLE_THREAD_MODEL: requests to the POA run one at a time, in
the order they arrive, on any upcall thread. A servant may call an
object of its own POA in the same ORB: the call runs at once on the
servant’s thread.
MainThread
MAIN_THREAD_MODEL: requests to the POA run one at a time on a
thread that is in Orb::run or Orb::perform_work, shared with
every other POA with this policy.
Trait Implementations§
Source§impl Clone for ThreadPolicy
impl Clone for ThreadPolicy
impl Copy for ThreadPolicy
Source§impl Debug for ThreadPolicy
impl Debug for ThreadPolicy
impl Eq for ThreadPolicy
Source§impl Hash for ThreadPolicy
impl Hash for ThreadPolicy
Source§impl PartialEq for ThreadPolicy
impl PartialEq for ThreadPolicy
impl StructuralPartialEq for ThreadPolicy
Auto Trait Implementations§
impl Freeze for ThreadPolicy
impl RefUnwindSafe for ThreadPolicy
impl Send for ThreadPolicy
impl Sync for ThreadPolicy
impl Unpin for ThreadPolicy
impl UnsafeUnpin for ThreadPolicy
impl UnwindSafe for ThreadPolicy
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