Struct dendrite_auth::dendrite::axon_server::event::GetEventsRequest
source · pub struct GetEventsRequest {
pub tracking_token: i64,
pub number_of_permits: i64,
pub client_id: String,
pub component_name: String,
pub processor: String,
pub blacklist: Vec<PayloadDescription>,
pub force_read_from_leader: bool,
}
Expand description
Request message to open an Event Stream from the Event Store.
Fields§
§tracking_token: i64
The token to start streaming from
number_of_permits: i64
The number of messages the server may send before it needs to wait for more permits
client_id: String
The unique identifier of this client instance. Used for monitoring.
component_name: String
The component name of this client instance. Used for monitoring.
processor: String
The name of the processor requesting this stream. Used for monitoring.
blacklist: Vec<PayloadDescription>
An enumeration of payload types that need to be blacklisted. The Server will stop sending messages of these types in order to reduce I/O. Note that the Server may occasionally send a blacklisted message to prevent time-outs and stale tokens on clients.
force_read_from_leader: bool
Indicates whether to force reading events from the leader node of an Axon Server. Forcing reads from leader reduces the staleness of the data read, but also puts extra burden on the leader, reducing overall scalability.
This property has no effect on connections to AxonServer SE.
Trait Implementations§
source§impl Clone for GetEventsRequest
impl Clone for GetEventsRequest
source§fn clone(&self) -> GetEventsRequest
fn clone(&self) -> GetEventsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetEventsRequest
impl Debug for GetEventsRequest
source§impl Default for GetEventsRequest
impl Default for GetEventsRequest
source§fn default() -> GetEventsRequest
fn default() -> GetEventsRequest
source§impl<'de> Deserialize<'de> for GetEventsRequest
impl<'de> Deserialize<'de> for GetEventsRequest
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<GetEventsRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GetEventsRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Message for GetEventsRequest
impl Message for GetEventsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for GetEventsRequest
impl PartialEq for GetEventsRequest
source§fn eq(&self, other: &GetEventsRequest) -> bool
fn eq(&self, other: &GetEventsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetEventsRequest
impl Serialize for GetEventsRequest
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for GetEventsRequest
Auto Trait Implementations§
impl RefUnwindSafe for GetEventsRequest
impl Send for GetEventsRequest
impl Sync for GetEventsRequest
impl Unpin for GetEventsRequest
impl UnwindSafe for GetEventsRequest
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
source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
§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> 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