pub struct GetCacheResult {
pub cached_items: Vec<Bytes>,
pub cache_request_token: Option<CacheRequestTokenV1>,
}Expand description
Result returned to the dispatch handler by either cache’s on_get.
Fields§
§cached_items: Vec<Bytes>Fresh cached bundles filtered by already_retrieved_peer_ids.
cache_request_token: Option<CacheRequestTokenV1>Issued when the server wants the client to upload after its walk.
Auto Trait Implementations§
impl Freeze for GetCacheResult
impl RefUnwindSafe for GetCacheResult
impl Send for GetCacheResult
impl Sync for GetCacheResult
impl Unpin for GetCacheResult
impl UnsafeUnpin for GetCacheResult
impl UnwindSafe for GetCacheResult
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more