#[non_exhaustive]pub struct CacheUpdate {
pub database_id: u64,
pub range: Vec<Range>,
pub group: Vec<Group>,
pub key_recipes: Option<RecipeList>,
/* private fields */
}Expand description
A CacheUpdate expresses a set of changes the client should incorporate into
its location cache. These changes may or may not be newer than what the
client has in its cache, and should be discarded if necessary. CacheUpdates
can be obtained in response to requests that included a RoutingHint
field, but may also be obtained by explicit location-fetching RPCs which may
be added in the future.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.database_id: u64An internal ID for the database. Database names can be reused if a database is deleted and re-created. Each time the database is re-created, it will get a new database ID, which will never be re-used for any other database.
range: Vec<Range>A list of ranges to be cached.
group: Vec<Group>A list of groups to be cached.
key_recipes: Option<RecipeList>A list of recipes to be cached.
Implementations§
Source§impl CacheUpdate
impl CacheUpdate
Sourcepub fn set_database_id<T: Into<u64>>(self, v: T) -> Self
pub fn set_database_id<T: Into<u64>>(self, v: T) -> Self
Sets the value of database_id.
Sourcepub fn set_key_recipes<T>(self, v: T) -> Selfwhere
T: Into<RecipeList>,
pub fn set_key_recipes<T>(self, v: T) -> Selfwhere
T: Into<RecipeList>,
Sets the value of key_recipes.
Sourcepub fn set_or_clear_key_recipes<T>(self, v: Option<T>) -> Selfwhere
T: Into<RecipeList>,
pub fn set_or_clear_key_recipes<T>(self, v: Option<T>) -> Selfwhere
T: Into<RecipeList>,
Sets or clears the value of key_recipes.
Trait Implementations§
Source§impl Clone for CacheUpdate
impl Clone for CacheUpdate
Source§fn clone(&self) -> CacheUpdate
fn clone(&self) -> CacheUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CacheUpdate
impl Debug for CacheUpdate
Source§impl Default for CacheUpdate
impl Default for CacheUpdate
Source§fn default() -> CacheUpdate
fn default() -> CacheUpdate
Source§impl Message for CacheUpdate
impl Message for CacheUpdate
Source§impl PartialEq for CacheUpdate
impl PartialEq for CacheUpdate
Source§fn eq(&self, other: &CacheUpdate) -> bool
fn eq(&self, other: &CacheUpdate) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CacheUpdate
Auto Trait Implementations§
impl !Freeze for CacheUpdate
impl RefUnwindSafe for CacheUpdate
impl Send for CacheUpdate
impl Sync for CacheUpdate
impl Unpin for CacheUpdate
impl UnsafeUnpin for CacheUpdate
impl UnwindSafe for CacheUpdate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
T in a tonic::Request