pub struct SpudkitConnection { /* private fields */ }Expand description
A connection to a Unix socket endpoint.
Implementations§
Source§impl SpudkitConnection
impl SpudkitConnection
pub fn new(path: impl Into<String>) -> Self
Sourcepub async fn fetch(
&self,
method: &str,
path: &str,
body: Option<&[u8]>,
) -> Result<Vec<u8>>
pub async fn fetch( &self, method: &str, path: &str, body: Option<&[u8]>, ) -> Result<Vec<u8>>
Send an HTTP request and return the full response body.
Trait Implementations§
Source§impl Clone for SpudkitConnection
impl Clone for SpudkitConnection
Source§fn clone(&self) -> SpudkitConnection
fn clone(&self) -> SpudkitConnection
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 SpudkitConnection
impl RefUnwindSafe for SpudkitConnection
impl Send for SpudkitConnection
impl Sync for SpudkitConnection
impl Unpin for SpudkitConnection
impl UnsafeUnpin for SpudkitConnection
impl UnwindSafe for SpudkitConnection
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