Trait cyfs_bdt::DeviceCache
source · [−]pub trait DeviceCache: Sync + Send + 'static {
fn add<'life0, 'life1, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId,
device: Device
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId
) -> Pin<Box<dyn Future<Output = Option<Device>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId
) -> Pin<Box<dyn Future<Output = BuckyResult<Device>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn verfiy_owner<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId,
device: Option<&'life2 Device>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn verfiy_own_signs<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
object_id: &'life1 ObjectId,
object: &'life2 Arc<AnyNamedObject>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn clone_cache(&self) -> Box<dyn OuterDeviceCache>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
;
}
Required Methods
sourcefn add<'life0, 'life1, 'async_trait>(
fn add<'life0, 'life1, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId,
device: Device
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourcefn get<'life0, 'life1, 'async_trait>(
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId
) -> Pin<Box<dyn Future<Output = Option<Device>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourcefn search<'life0, 'life1, 'async_trait>(
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId
) -> Pin<Box<dyn Future<Output = BuckyResult<Device>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourcefn verfiy_owner<'life0, 'life1, 'life2, 'async_trait>(
fn verfiy_owner<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
device_id: &'life1 DeviceId,
device: Option<&'life2 Device>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourcefn verfiy_own_signs<'life0, 'life1, 'life2, 'async_trait>(
fn verfiy_own_signs<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
object_id: &'life1 ObjectId,
object: &'life2 Arc<AnyNamedObject>
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P>where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;