pub struct ServerOrigins<E>{ /* private fields */ }Expand description
Collection of server origins.
Implementations§
Trait Implementations§
Source§impl<E> RemoteOrigins for ServerOrigins<E>
impl<E> RemoteOrigins for ServerOrigins<E>
Source§fn list_servers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashSet<Origin>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_servers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashSet<Origin>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List server origins from the backing storage.
Source§fn add_server<'life0, 'async_trait>(
&'life0 mut self,
origin: Origin,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_server<'life0, 'async_trait>(
&'life0 mut self,
origin: Origin,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Add a server origin to the backing storage.
Source§fn replace_server<'life0, 'life1, 'async_trait>(
&'life0 mut self,
old_origin: &'life1 Origin,
new_origin: Origin,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn replace_server<'life0, 'life1, 'async_trait>(
&'life0 mut self,
old_origin: &'life1 Origin,
new_origin: Origin,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update a server origin in the backing storage.
Auto Trait Implementations§
impl<E> Freeze for ServerOrigins<E>
impl<E> RefUnwindSafe for ServerOrigins<E>where
E: RefUnwindSafe,
impl<E> Send for ServerOrigins<E>
impl<E> Sync for ServerOrigins<E>
impl<E> Unpin for ServerOrigins<E>where
E: Unpin,
impl<E> UnwindSafe for ServerOrigins<E>where
E: UnwindSafe,
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