Struct aruna_cache::notifications::NotificationCache
source · pub struct NotificationCache {
pub cache: Cache,
/* private fields */
}Fields§
§cache: CacheImplementations§
source§impl NotificationCache
impl NotificationCache
pub async fn new( token: impl Into<String>, server: impl Into<String>, qhandler: Box<dyn QueryHandler + Send + Sync> ) -> Result<Self>
pub async fn create_notifications_channel( &mut self, stream_consumer: String ) -> Result<()>
pub fn get_resource(&self, res: &Resource) -> Option<Resource>
pub fn get_user(&self, user_id: DieselUlid) -> Option<User>
pub fn check_with_targets( &self, from: &Resource, targets: Vec<Resource> ) -> Result<()>
pub fn traverse_graph( &self, from: &Resource ) -> Result<Vec<(Resource, Resource)>>
pub fn resource_update( &self, res: ApiResource, shared_id: DieselUlid, persistent_resource: Resource )
pub fn user_update(&self, user: User) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for NotificationCache
impl Send for NotificationCache
impl Sync for NotificationCache
impl Unpin for NotificationCache
impl !UnwindSafe for NotificationCache
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>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request