pub struct ForwardedGet {
pub key: String,
pub req_id: u64,
pub priority: i32,
pub hops: u32,
}Expand description
A single-key routed read. The origin tries configured holders in order; a non-serving holder may relay it under a fresh request id while placement maps converge. GetResponse has no unavailable value, so routing/actor unavailability produces no false not-found reply and the origin times out.
Fields§
§key: String§req_id: u64§priority: i32Phase 7: priority the receiving node should serve this read with.
hops: u32Phase 8: re-forward count, as with ForwardedPut. A non-serving node relays the read to the current owner and relays the response back.
Implementations§
Source§impl ForwardedGet
impl ForwardedGet
Trait Implementations§
Source§impl Clone for ForwardedGet
impl Clone for ForwardedGet
Source§impl Debug for ForwardedGet
impl Debug for ForwardedGet
Source§impl Default for ForwardedGet
impl Default for ForwardedGet
impl Eq for ForwardedGet
Source§impl Hash for ForwardedGet
impl Hash for ForwardedGet
Source§impl Message for ForwardedGet
impl Message for ForwardedGet
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ForwardedGet
impl PartialEq for ForwardedGet
impl StructuralPartialEq for ForwardedGet
Auto Trait Implementations§
impl Freeze for ForwardedGet
impl RefUnwindSafe for ForwardedGet
impl Send for ForwardedGet
impl Sync for ForwardedGet
impl Unpin for ForwardedGet
impl UnsafeUnpin for ForwardedGet
impl UnwindSafe for ForwardedGet
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