pub enum RequestMethod {
Get,
Head,
}Expand description
HTTP method of a Downloader request.
Lives in kithara-events (not kithara-stream) because both the
command type and the lifecycle events refer to it; keeping it next
to the events avoids the dependency cycle.
Variants§
Get
HTTP GET, streaming body. Default — used for large downloads (segments, files) that write directly to storage.
Head
HTTP HEAD, headers only. Used for metadata queries
(Content-Length).
Trait Implementations§
Source§impl Clone for RequestMethod
impl Clone for RequestMethod
Source§fn clone(&self) -> RequestMethod
fn clone(&self) -> RequestMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestMethod
impl Debug for RequestMethod
Source§impl Default for RequestMethod
impl Default for RequestMethod
Source§fn default() -> RequestMethod
fn default() -> RequestMethod
Returns the “default value” for a type. Read more
Source§impl Hash for RequestMethod
impl Hash for RequestMethod
Source§impl PartialEq for RequestMethod
impl PartialEq for RequestMethod
Source§fn eq(&self, other: &RequestMethod) -> bool
fn eq(&self, other: &RequestMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RequestMethod
impl Eq for RequestMethod
impl StructuralPartialEq for RequestMethod
Auto Trait Implementations§
impl Freeze for RequestMethod
impl RefUnwindSafe for RequestMethod
impl Send for RequestMethod
impl Sync for RequestMethod
impl Unpin for RequestMethod
impl UnsafeUnpin for RequestMethod
impl UnwindSafe for RequestMethod
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