pub struct InMemoryStopPolicyRegistry { /* private fields */ }Implementations§
Source§impl InMemoryStopPolicyRegistry
impl InMemoryStopPolicyRegistry
pub fn new() -> Self
pub fn register_named( &mut self, id: impl Into<String>, policy: Arc<dyn StopPolicy>, ) -> Result<(), StopPolicyRegistryError>
pub fn extend_named( &mut self, policies: HashMap<String, Arc<dyn StopPolicy>>, ) -> Result<(), StopPolicyRegistryError>
pub fn extend_registry( &mut self, other: &dyn StopPolicyRegistry, ) -> Result<(), StopPolicyRegistryError>
Trait Implementations§
Source§impl Clone for InMemoryStopPolicyRegistry
impl Clone for InMemoryStopPolicyRegistry
Source§fn clone(&self) -> InMemoryStopPolicyRegistry
fn clone(&self) -> InMemoryStopPolicyRegistry
Returns a duplicate 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 InMemoryStopPolicyRegistry
impl Debug for InMemoryStopPolicyRegistry
Source§impl Default for InMemoryStopPolicyRegistry
impl Default for InMemoryStopPolicyRegistry
Source§fn default() -> InMemoryStopPolicyRegistry
fn default() -> InMemoryStopPolicyRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryStopPolicyRegistry
impl !RefUnwindSafe for InMemoryStopPolicyRegistry
impl Send for InMemoryStopPolicyRegistry
impl Sync for InMemoryStopPolicyRegistry
impl Unpin for InMemoryStopPolicyRegistry
impl !UnwindSafe for InMemoryStopPolicyRegistry
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