pub struct GetOptions { /* private fields */ }Expand description
Options for an object read or head.
Implementations§
Source§impl GetOptions
impl GetOptions
Sourcepub fn range(self, start: u64, end_inclusive: Option<u64>) -> Self
pub fn range(self, start: u64, end_inclusive: Option<u64>) -> Self
Read one inclusive byte range.
Sourcepub fn if_none_match(self, value: impl Into<String>) -> Self
pub fn if_none_match(self, value: impl Into<String>) -> Self
Reject one opaque ETag.
Sourcepub fn maximum_bytes(self, value: u64) -> Self
pub fn maximum_bytes(self, value: u64) -> Self
Bound the selected response body before any body frame is decoded.
Trait Implementations§
Source§impl Clone for GetOptions
impl Clone for GetOptions
Source§impl Debug for GetOptions
impl Debug for GetOptions
Auto Trait Implementations§
impl Freeze for GetOptions
impl RefUnwindSafe for GetOptions
impl Send for GetOptions
impl Sync for GetOptions
impl Unpin for GetOptions
impl UnsafeUnpin for GetOptions
impl UnwindSafe for GetOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request