pub struct StreamError {
pub response: StaticResponse,
pub unsatisfied_length: Option<u64>,
}Expand description
A bounded static error plus optional unsatisfied representation length.
§Fields
response: Stored field onStreamError.unsatisfied_length: Stored field onStreamError.
§Examples
ⓘ
let _ = std::mem::size_of::<pharos_runtime_static::artifact_server::StreamError>();§Related
crate::artifact_serverfor constructors, helpers, and neighboring runtime types.
Fields§
§response: StaticResponseExisting bounded error body.
unsatisfied_length: Option<u64>Complete length emitted as Content-Range: bytes */N for status 416.
Trait Implementations§
Source§impl Clone for StreamError
impl Clone for StreamError
Source§fn clone(&self) -> StreamError
fn clone(&self) -> StreamError
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 StreamError
impl Debug for StreamError
Source§impl PartialEq for StreamError
impl PartialEq for StreamError
Source§fn eq(&self, other: &StreamError) -> bool
fn eq(&self, other: &StreamError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StreamError
impl StructuralPartialEq for StreamError
Auto Trait Implementations§
impl Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnsafeUnpin for StreamError
impl UnwindSafe for StreamError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.