pub struct PushHint {
pub protocol: ProtocolVersion,
pub tenant_id: TenantId,
pub scope_id: SyncScopeId,
pub sequence: Sequence,
pub reason: PushHintReason,
pub region_id: Option<RegionId>,
}Expand description
Payload-free notification that prompts a client to use the normal pull protocol. Hints are advisory and never carry authoritative business state.
Fields§
§protocol: ProtocolVersionWire protocol spoken by the sender.
tenant_id: TenantIdTenant boundary to validate before acting on the hint.
scope_id: SyncScopeIdScope whose journal may have advanced.
sequence: SequenceGreatest journal position known when the hint was emitted.
reason: PushHintReasonWhy the hint was emitted.
region_id: Option<RegionId>Serving region that emitted the hint, when region routing is enabled.
Trait Implementations§
impl Copy for PushHint
Source§impl<'de> Deserialize<'de> for PushHint
impl<'de> Deserialize<'de> for PushHint
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 PushHint
impl StructuralPartialEq for PushHint
Auto Trait Implementations§
impl Freeze for PushHint
impl RefUnwindSafe for PushHint
impl Send for PushHint
impl Sync for PushHint
impl Unpin for PushHint
impl UnsafeUnpin for PushHint
impl UnwindSafe for PushHint
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