pub struct Client<T = HttpTransport> { /* private fields */ }Expand description
Gingr client configuration bundle shared by endpoint builders and transport.
Implementations§
Source§impl Client<HttpTransport>
impl Client<HttpTransport>
Source§impl<T> Client<T>
impl<T> Client<T>
Sourcepub fn with_transport(config: Client, transport: T) -> Self
pub fn with_transport(config: Client, transport: T) -> Self
Installs a custom transport implementation, usually for tests.
Sourcepub fn capture_request(&self, request: &impl Request) -> Result<RequestParts>
pub fn capture_request(&self, request: &impl Request) -> Result<RequestParts>
Returns the raw request parts generated for an endpoint without sending it.
Sourcepub fn redacted_request(
&self,
request: &impl Request,
) -> Result<RedactedRequest>
pub fn redacted_request( &self, request: &impl Request, ) -> Result<RedactedRequest>
Returns a log-safe representation of the generated Gingr request.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Client<T>where
T: Freeze,
impl<T> RefUnwindSafe for Client<T>where
T: RefUnwindSafe,
impl<T> Send for Client<T>where
T: Send,
impl<T> Sync for Client<T>where
T: Sync,
impl<T> Unpin for Client<T>where
T: Unpin,
impl<T> UnsafeUnpin for Client<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Client<T>where
T: 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