pub struct LocalFirst;Expand description
The starting policy: a local resource with room, else a remote one with room (least loaded first), else create within the budget, else wait. No number from any benchmark is built in; whether remote reuse beats creation is a measurement the embedder makes and expresses in its own policy.
Trait Implementations§
Source§impl Clone for LocalFirst
impl Clone for LocalFirst
Source§fn clone(&self) -> LocalFirst
fn clone(&self) -> LocalFirst
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocalFirst
Source§impl Debug for LocalFirst
impl Debug for LocalFirst
Source§impl Default for LocalFirst
impl Default for LocalFirst
Source§fn default() -> LocalFirst
fn default() -> LocalFirst
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalFirst
impl RefUnwindSafe for LocalFirst
impl Send for LocalFirst
impl Sync for LocalFirst
impl Unpin for LocalFirst
impl UnsafeUnpin for LocalFirst
impl UnwindSafe for LocalFirst
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