pub enum AllocPolicy {
Default,
FirstMatch,
}
Expand description
Resource allocation policies.
Variants§
Default
Default resource allocation policy.
FirstMatch
Return the first available resource matching the allocation constraints.
Trait Implementations§
Source§impl Clone for AllocPolicy
impl Clone for AllocPolicy
Source§fn clone(&self) -> AllocPolicy
fn clone(&self) -> AllocPolicy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AllocPolicy
impl Debug for AllocPolicy
Source§impl PartialEq for AllocPolicy
impl PartialEq for AllocPolicy
impl Copy for AllocPolicy
impl Eq for AllocPolicy
impl StructuralPartialEq for AllocPolicy
Auto Trait Implementations§
impl Freeze for AllocPolicy
impl RefUnwindSafe for AllocPolicy
impl Send for AllocPolicy
impl Sync for AllocPolicy
impl Unpin for AllocPolicy
impl UnwindSafe for AllocPolicy
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