Struct rqlite_client::Request
source · pub struct Request<T>where
T: RequestType,{ /* private fields */ }
Expand description
Implemented Request
handling utilizing crate ureq
Requires enabled feature ureq
.
Requests can be initialized manually, but there should be little requirements for.
The preferred usage is via Query
and Query::request_run()
.
Implementations§
source§impl<T> Request<T>where
T: RequestType,
impl<T> Request<T>where
T: RequestType,
sourcepub fn from_connection(connection: &Connection) -> Self
pub fn from_connection(connection: &Connection) -> Self
Create new Request
for Connection
Build and use a new ureq::Agent
.
Trait Implementations§
source§impl<T> Default for Request<T>where
T: RequestType,
impl<T> Default for Request<T>where
T: RequestType,
source§impl<T> From<&Connection> for Request<T>where
T: RequestType,
impl<T> From<&Connection> for Request<T>where
T: RequestType,
source§fn from(connection: &Connection) -> Self
fn from(connection: &Connection) -> Self
Converts to this type from the input type.
source§impl<T> From<Connection> for Request<T>where
T: RequestType,
impl<T> From<Connection> for Request<T>where
T: RequestType,
source§fn from(connection: Connection) -> Self
fn from(connection: Connection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Request<T>
impl<T> Send for Request<T>where
T: Send,
impl<T> Sync for Request<T>where
T: Sync,
impl<T> Unpin for Request<T>where
T: Unpin,
impl<T> !UnwindSafe for Request<T>
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