pub struct Endpoint<'a> { /* private fields */ }Implementations§
Source§impl<'a> Endpoint<'a>
impl<'a> Endpoint<'a>
Sourcepub fn new(client: &'a Nomad) -> Self
pub fn new(client: &'a Nomad) -> Self
Create a new Endpoint with the given Nomad client to interact with
the evaluation endpoints.
Sourcepub async fn count(
&self,
opts: Option<QueryOptions>,
) -> Result<EvaluationCountResponse, ClientError>
pub async fn count( &self, opts: Option<QueryOptions>, ) -> Result<EvaluationCountResponse, ClientError>
Sourcepub async fn delete(
&self,
evaluation_delete_request: &EvalualtionDeleteRequest,
opts: Option<WriteOptions>,
) -> Result<EvaluationDeleteResponse, ClientError>
pub async fn delete( &self, evaluation_delete_request: &EvalualtionDeleteRequest, opts: Option<WriteOptions>, ) -> Result<EvaluationDeleteResponse, ClientError>
Sourcepub async fn get(
&self,
evaluation_id: &str,
opts: Option<QueryOptions>,
) -> Result<Evaluation, ClientError>
pub async fn get( &self, evaluation_id: &str, opts: Option<QueryOptions>, ) -> Result<Evaluation, ClientError>
Sourcepub async fn list(
&self,
opts: Option<QueryOptions>,
) -> Result<Vec<Evaluation>, ClientError>
pub async fn list( &self, opts: Option<QueryOptions>, ) -> Result<Vec<Evaluation>, ClientError>
Sourcepub async fn list_allocations(
&self,
evaluation_id: &str,
opts: Option<QueryOptions>,
) -> Result<Vec<AllocationStub>, ClientError>
pub async fn list_allocations( &self, evaluation_id: &str, opts: Option<QueryOptions>, ) -> Result<Vec<AllocationStub>, ClientError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Endpoint<'a>
impl<'a> !UnwindSafe for Endpoint<'a>
impl<'a> Freeze for Endpoint<'a>
impl<'a> Send for Endpoint<'a>
impl<'a> Sync for Endpoint<'a>
impl<'a> Unpin for Endpoint<'a>
impl<'a> UnsafeUnpin for Endpoint<'a>
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