pub struct FetchAndCacheResult {
pub status: String,
pub size_bytes: Option<u64>,
pub served_root: Option<HexId>,
pub message: Option<String>,
}Expand description
Result for cache.fetchAndCache.
A failed fetch is reported in-band (status = "failed" + message) so the
caller can show it without treating it as a transport error.
Fields§
§status: String"cached", "already_cached", or "failed".
size_bytes: Option<u64>The fetched module size in bytes (on success).
served_root: Option<HexId>The served generation root (64-hex, on success).
message: Option<String>The failure message (on status = "failed").
Trait Implementations§
Source§impl Clone for FetchAndCacheResult
impl Clone for FetchAndCacheResult
Source§fn clone(&self) -> FetchAndCacheResult
fn clone(&self) -> FetchAndCacheResult
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 FetchAndCacheResult
impl Debug for FetchAndCacheResult
Source§impl<'de> Deserialize<'de> for FetchAndCacheResult
impl<'de> Deserialize<'de> for FetchAndCacheResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FetchAndCacheResult
Source§impl PartialEq for FetchAndCacheResult
impl PartialEq for FetchAndCacheResult
Source§impl Serialize for FetchAndCacheResult
impl Serialize for FetchAndCacheResult
impl StructuralPartialEq for FetchAndCacheResult
Auto Trait Implementations§
impl Freeze for FetchAndCacheResult
impl RefUnwindSafe for FetchAndCacheResult
impl Send for FetchAndCacheResult
impl Sync for FetchAndCacheResult
impl Unpin for FetchAndCacheResult
impl UnsafeUnpin for FetchAndCacheResult
impl UnwindSafe for FetchAndCacheResult
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