Struct safe_http_async::RequestLine
source · [−]pub struct RequestLine {
pub method: Method,
pub uri: Uri,
pub version: Version,
/* private fields */
}
Fields
method: Method
uri: Uri
version: Version
Implementations
sourceimpl RequestLine
impl RequestLine
pub fn new() -> RequestLine
pub fn from_uri(uri: Uri) -> RequestLine
Trait Implementations
sourceimpl Clone for RequestLine
impl Clone for RequestLine
sourcefn clone(&self) -> RequestLine
fn clone(&self) -> RequestLine
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RequestLine
impl Debug for RequestLine
sourceimpl Default for RequestLine
impl Default for RequestLine
sourcefn default() -> RequestLine
fn default() -> RequestLine
Returns the “default value” for a type. Read more
sourceimpl From<Uri> for RequestLine
impl From<Uri> for RequestLine
sourcefn from(uri: Uri) -> RequestLine
fn from(uri: Uri) -> RequestLine
Performs the conversion.
sourceimpl Hash for RequestLine
impl Hash for RequestLine
sourceimpl PartialEq<RequestLine> for RequestLine
impl PartialEq<RequestLine> for RequestLine
sourcefn eq(&self, other: &RequestLine) -> bool
fn eq(&self, other: &RequestLine) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RequestLine) -> bool
fn ne(&self, other: &RequestLine) -> bool
This method tests for !=
.
impl Eq for RequestLine
impl StructuralEq for RequestLine
impl StructuralPartialEq for RequestLine
Auto Trait Implementations
impl RefUnwindSafe for RequestLine
impl Send for RequestLine
impl Sync for RequestLine
impl Unpin for RequestLine
impl UnwindSafe for RequestLine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more