[−][src]Struct romad::client::RomadClient
Implementations
impl RomadClient
[src]
pub fn new(
address: &'static str,
port: &'static str,
token: Option<&'static str>
) -> Result<RomadClient, RomadClientError>
[src]
address: &'static str,
port: &'static str,
token: Option<&'static str>
) -> Result<RomadClient, RomadClientError>
New
pub fn from_connection(
connection: Connection<'_>
) -> Result<RomadClient, RomadClientError>
[src]
connection: Connection<'_>
) -> Result<RomadClient, RomadClientError>
Create client from a connection object
pub fn get_base_url(&self) -> &String
[src]
Get base url
pub fn get_client(&self) -> &Client
[src]
Get the http client for then object
pub async fn list_jobs<'_, '_, '_>(
&'_ mut self,
prefix: Option<&'_ String>,
namespace: Option<&'_ String>
) -> Result<Vec<Job>, RomadClientError>
[src]
&'_ mut self,
prefix: Option<&'_ String>,
namespace: Option<&'_ String>
) -> Result<Vec<Job>, RomadClientError>
Method calls the List Jobs endpoint TODO: Implement prefix and namespace filter
Auto Trait Implementations
impl !RefUnwindSafe for RomadClient
impl Send for RomadClient
impl Sync for RomadClient
impl Unpin for RomadClient
impl !UnwindSafe for RomadClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,