Struct bee_tangle::ms_tangle::StorageHooks [−][src]
pub struct StorageHooks<B> { /* fields omitted */ }Expand description
Tangle hooks that interoperate with Bee’s storage layer.
Trait Implementations
impl<B: StorageBackend> Hooks<MessageMetadata> for StorageHooks<B>[src]
impl<B: StorageBackend> Hooks<MessageMetadata> for StorageHooks<B>[src]fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MessageId
) -> Pin<Box<dyn Future<Output = Result<Option<(Message, MessageMetadata)>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MessageId
) -> Pin<Box<dyn Future<Output = Result<Option<(Message, MessageMetadata)>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]Fetch a message from some external storage medium.
fn insert<'life0, 'async_trait>(
&'life0 self,
id: MessageId,
tx: Message,
metadata: MessageMetadata
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
fn insert<'life0, 'async_trait>(
&'life0 self,
id: MessageId,
tx: Message,
metadata: MessageMetadata
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]Insert a message into some external storage medium.
fn fetch_approvers<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MessageId
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<MessageId>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
fn fetch_approvers<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 MessageId
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<MessageId>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]Fetch the approvers list for a given message.
fn insert_approver<'life0, 'async_trait>(
&'life0 self,
id: MessageId,
approver: MessageId
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
fn insert_approver<'life0, 'async_trait>(
&'life0 self,
id: MessageId,
approver: MessageId
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]Insert a new approver for a given message.
fn update_approvers<'life0, 'life1, 'async_trait>(
&'life0 self,
id: MessageId,
approvers: &'life1 [MessageId]
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
fn update_approvers<'life0, 'life1, 'async_trait>(
&'life0 self,
id: MessageId,
approvers: &'life1 [MessageId]
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]Update the approvers list for a given message.
Auto Trait Implementations
impl<B> RefUnwindSafe for StorageHooks<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for StorageHooks<B> where
B: Send + Sync,
B: Send + Sync,
impl<B> Sync for StorageHooks<B> where
B: Send + Sync,
B: Send + Sync,
impl<B> Unpin for StorageHooks<B>
impl<B> UnwindSafe for StorageHooks<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,