Struct cedar_agent::policies::memory::MemoryPolicyStore
source · pub struct MemoryPolicyStore { /* private fields */ }Implementations§
Trait Implementations§
source§impl PolicyStore for MemoryPolicyStore
impl PolicyStore for MemoryPolicyStore
fn policy_set<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = PolicySet> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn get_policies<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Vec<Policy>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn get_policy<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn create_policy<'life0, 'life1, 'async_trait>( &'life0 self, policy: &'life1 Policy ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn update_policies<'life0, 'async_trait>( &'life0 self, policies: Vec<Policy> ) -> Pin<Box<dyn Future<Output = Result<Vec<Policy>, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn update_policy<'life0, 'async_trait>( &'life0 self, id: String, policy_update: PolicyUpdate ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn delete_policy<'life0, 'life1, 'async_trait>( &'life0 self, id: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Policy, Box<dyn Error>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryPolicyStore
impl Send for MemoryPolicyStore
impl Sync for MemoryPolicyStore
impl Unpin for MemoryPolicyStore
impl UnwindSafe for MemoryPolicyStore
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.