pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
Sourcepub async fn delete_allocations_by_username(
&self,
username: String,
) -> Result<(), Error>
pub async fn delete_allocations_by_username( &self, username: String, ) -> Result<(), Error>
Deletes all existing allocations with the provided username.
§Errors
With an Error::Closed if the Server was closed already.
Sourcepub async fn get_allocations_info(
&self,
five_tuples: Option<Vec<FiveTuple>>,
) -> Result<HashMap<FiveTuple, Info>, Error>
pub async fn get_allocations_info( &self, five_tuples: Option<Vec<FiveTuple>>, ) -> Result<HashMap<FiveTuple, Info>, Error>
Returns Infos for the provided FiveTuples.
If five_tuples is:
None: It returns information about the all allocations.Someand not empty: It returns information about the allocations associated with the specifiedFiveTuples.Some, but empty: It returns an emptyHashMap.
§Errors
With an Error::Closed if the Server was closed already.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
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