pub struct LocalServerPool {
pub servers: Vec<LocalServer>,
}
Expand description
Pool of locally allocated servers
Fields§
§servers: Vec<LocalServer>
The available servers
Implementations§
Source§impl LocalServerPool
impl LocalServerPool
Sourcepub async fn spawn(count: usize) -> Result<LocalServerPool, ServerError>
pub async fn spawn(count: usize) -> Result<LocalServerPool, ServerError>
Spawns a pool of count
size
Sourcepub fn server_hosts(&self) -> Vec<ConvertServerHost>
pub fn server_hosts(&self) -> Vec<ConvertServerHost>
Provides a list of server hosts from the available servers
Auto Trait Implementations§
impl Freeze for LocalServerPool
impl !RefUnwindSafe for LocalServerPool
impl Send for LocalServerPool
impl Sync for LocalServerPool
impl Unpin for LocalServerPool
impl !UnwindSafe for LocalServerPool
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