pub struct GenericAllocationPolicy;Expand description
Standard policy relying on Storage’s namespace admission and resource limits.
Trait Implementations§
Source§impl RuntimeBootstrapPolicy for GenericAllocationPolicy
impl RuntimeBootstrapPolicy for GenericAllocationPolicy
Source§fn validate_allocation(&self, _key: &StableKey) -> Result<(), Self::Error>
fn validate_allocation(&self, _key: &StableKey) -> Result<(), Self::Error>
Validate one admitted key; numeric placement is owned by Storage.
Source§fn runtime_bootstrap_identity(&self) -> PolicyIdentity
fn runtime_bootstrap_identity(&self) -> PolicyIdentity
Bind all effective host policy configuration.
Source§fn prepare_bootstrap(
&self,
_admission: &mut BootstrapAdmission<'_>,
) -> Result<(), Self::Error>
fn prepare_bootstrap( &self, _admission: &mut BootstrapAdmission<'_>, ) -> Result<(), Self::Error>
Inspect retained names and optionally select historical keys.
Auto Trait Implementations§
impl Freeze for GenericAllocationPolicy
impl RefUnwindSafe for GenericAllocationPolicy
impl Send for GenericAllocationPolicy
impl Sync for GenericAllocationPolicy
impl Unpin for GenericAllocationPolicy
impl UnsafeUnpin for GenericAllocationPolicy
impl UnwindSafe for GenericAllocationPolicy
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