pub struct BlockingClient { /* private fields */ }Available on crate feature
_blocking only.Implementations§
Source§impl BlockingClient
impl BlockingClient
Sourcepub fn builder(base_url: &str) -> Result<BlockingClientBuilder>
pub fn builder(base_url: &str) -> Result<BlockingClientBuilder>
Start building a new blocking client.
pub fn service_root(&self) -> ServiceRootService<'_, BlockingClient>
pub fn systems(&self) -> SystemsService<'_, BlockingClient>
Sourcepub fn system(
&self,
system_id: impl Into<String>,
) -> SystemResourceService<'_, BlockingClient>
pub fn system( &self, system_id: impl Into<String>, ) -> SystemResourceService<'_, BlockingClient>
A convenience wrapper around a specific system member.
pub fn chassis(&self) -> ChassisService<'_, BlockingClient>
Sourcepub fn chassis_member(
&self,
chassis_id: impl Into<String>,
) -> ChassisResourceService<'_, BlockingClient>
pub fn chassis_member( &self, chassis_id: impl Into<String>, ) -> ChassisResourceService<'_, BlockingClient>
A convenience wrapper around a specific chassis member.
pub fn managers(&self) -> ManagersService<'_, BlockingClient>
Sourcepub fn manager(
&self,
manager_id: impl Into<String>,
) -> ManagerResourceService<'_, BlockingClient>
pub fn manager( &self, manager_id: impl Into<String>, ) -> ManagerResourceService<'_, BlockingClient>
A convenience wrapper around a specific manager member.
pub fn sessions(&self) -> SessionsService<'_, BlockingClient>
Sourcepub fn account_service(&self) -> AccountServiceService<'_, BlockingClient>
pub fn account_service(&self) -> AccountServiceService<'_, BlockingClient>
AccountService.
Sourcepub fn event_service(&self) -> EventServiceService<'_, BlockingClient>
pub fn event_service(&self) -> EventServiceService<'_, BlockingClient>
EventService.
Sourcepub fn task_service(&self) -> TaskServiceService<'_, BlockingClient>
pub fn task_service(&self) -> TaskServiceService<'_, BlockingClient>
TaskService.
Sourcepub fn update_service(&self) -> UpdateServiceService<'_, BlockingClient>
pub fn update_service(&self) -> UpdateServiceService<'_, BlockingClient>
UpdateService.
Sourcepub fn registries(&self) -> RegistriesService<'_, BlockingClient>
pub fn registries(&self) -> RegistriesService<'_, BlockingClient>
Registries discovery service.
Sourcepub fn json_schemas(&self) -> JsonSchemasService<'_, BlockingClient>
pub fn json_schemas(&self) -> JsonSchemasService<'_, BlockingClient>
JSON Schemas discovery service.
Sourcepub fn get_uri<T: DeserializeOwned>(&self, uri: &str) -> Result<T>
pub fn get_uri<T: DeserializeOwned>(&self, uri: &str) -> Result<T>
Fetch an arbitrary URI (absolute or relative to base_url) as JSON.
Sourcepub fn request_json_value(
&self,
method: Method,
uri: &str,
body: Option<&Value>,
) -> Result<Value>
pub fn request_json_value( &self, method: Method, uri: &str, body: Option<&Value>, ) -> Result<Value>
Send an arbitrary request and decode the response as JSON Value.
This is an escape hatch for OEM/unmodeled endpoints.
urican be absolute (https://...) or relative to the client’sbase_url.- For success responses with an empty body (e.g.
204 No Content), this returnsValue::Null.
Sourcepub fn request_json_value_url(
&self,
method: Method,
url: Url,
body: Option<&Value>,
) -> Result<Value>
pub fn request_json_value_url( &self, method: Method, url: Url, body: Option<&Value>, ) -> Result<Value>
Same as BlockingClient::request_json_value, but takes a fully resolved URL.
Sourcepub fn collect_all_collection_members<T: DeserializeOwned>(
&self,
collection_uri: &str,
) -> Result<Vec<T>>
pub fn collect_all_collection_members<T: DeserializeOwned>( &self, collection_uri: &str, ) -> Result<Vec<T>>
Fetch all Members across a paginated collection.
Trait Implementations§
Source§impl Clone for BlockingClient
impl Clone for BlockingClient
Source§fn clone(&self) -> BlockingClient
fn clone(&self) -> BlockingClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockingClient
impl !RefUnwindSafe for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl UnsafeUnpin for BlockingClient
impl !UnwindSafe for BlockingClient
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