pub struct RemotesManagerImpl { /* private fields */ }
Trait Implementations§
Source§impl Component for RemotesManagerImpl
impl Component for RemotesManagerImpl
Source§impl ComponentDowncast<RemotesManagerImpl> for RemotesManagerImpl
impl ComponentDowncast<RemotesManagerImpl> for RemotesManagerImpl
Source§impl ComponentDowncast<RemotesManagerImpl> for dyn RemotesManager + Sync + Send
impl ComponentDowncast<RemotesManagerImpl> for dyn RemotesManager + Sync + Send
Source§impl Lifecycle for RemotesManagerImpl
impl Lifecycle for RemotesManagerImpl
Source§fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn post_init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called after initialization
§fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called at initialization
Source§impl RemotesManager for RemotesManagerImpl
impl RemotesManager for RemotesManagerImpl
Source§fn get(&self, address: &InstanceAddress) -> Option<InstanceInfo>
fn get(&self, address: &InstanceAddress) -> Option<InstanceInfo>
Returns the instance info with the given address.
Source§fn has(&self, address: &InstanceAddress) -> bool
fn has(&self, address: &InstanceAddress) -> bool
Returns true if the given address is registered.
Source§fn get_all_addresses(&self) -> HashSet<InstanceAddress>
fn get_all_addresses(&self) -> HashSet<InstanceAddress>
Returns a list of the addresses of the remote instances.
Source§fn add<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 InstanceAddress,
) -> Pin<Box<dyn Future<Output = Result<InstanceInfo, FailedToAddInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 InstanceAddress,
) -> Pin<Box<dyn Future<Output = Result<InstanceInfo, FailedToAddInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Adds a remote instance.
Source§fn remove_all(&self)
fn remove_all(&self)
Removes all remote instances.
Source§fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 InstanceAddress,
) -> Pin<Box<dyn Future<Output = Result<InstanceInfo, FailedToUpdateInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 InstanceAddress,
) -> Pin<Box<dyn Future<Output = Result<InstanceInfo, FailedToUpdateInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Updates a remote instance.
Source§fn update_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<InstanceInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<InstanceInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Removes all remote instances.
Source§fn fetch_and_add_remotes_from_remote<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 InstanceAddress,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstanceInfo>, FailedToFetchRemoteInstances>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_and_add_remotes_from_remote<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 InstanceAddress,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstanceInfo>, FailedToFetchRemoteInstances>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches and adds all remote instances of the given remote instance.
impl Injectable for RemotesManagerImpl
Auto Trait Implementations§
impl Freeze for RemotesManagerImpl
impl !RefUnwindSafe for RemotesManagerImpl
impl Send for RemotesManagerImpl
impl Sync for RemotesManagerImpl
impl Unpin for RemotesManagerImpl
impl !UnwindSafe for RemotesManagerImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more