pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn ca_pem(&self) -> String
pub async fn call( &self, method: Method, path: &str, ctype: Option<&str>, body: Option<Vec<u8>>, ) -> Result<(u16, Value)>
pub async fn get(&self, path: &str) -> Result<(u16, Value)>
pub async fn post(&self, path: &str, body: &Value) -> Result<(u16, Value)>
pub async fn patch( &self, path: &str, ctype: &str, body: &Value, ) -> Result<(u16, Value)>
pub async fn delete(&self, path: &str, body: &Value) -> Result<(u16, Value)>
pub async fn watch(&self, path: &str) -> Result<Watch>
Auto Trait Implementations§
impl !Freeze for Client
impl Forget for Client
impl Move for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Clientwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const ArcInner<Conn> is !null: UnsafeUnpin,
PhantomData<ArcInner<Conn>>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
impl UnwindSafe for Clientwhere
RawVecInner: UnwindSafe,
Mutex<Loaded>: UnwindSafe,
Mutex<Waitlist>: UnwindSafe,
AtomicUsize: UnwindSafe,
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