pub struct ServerOrigins(/* private fields */);Expand description
Collection of server origins.
Implementations§
Source§impl ServerOrigins
impl ServerOrigins
Sourcepub fn new(target: BackendTarget, account_id: &AccountId) -> Self
pub fn new(target: BackendTarget, account_id: &AccountId) -> Self
Create new server origins.
Trait Implementations§
Source§impl RemoteOrigins for ServerOrigins
impl RemoteOrigins for ServerOrigins
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 Freeze for ServerOrigins
impl !RefUnwindSafe for ServerOrigins
impl Send for ServerOrigins
impl Sync for ServerOrigins
impl Unpin for ServerOrigins
impl !UnwindSafe for ServerOrigins
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