Struct google_api_proto::google::cloud::visionai::v1alpha1::receive_events_request::SetupRequest
source · pub struct SetupRequest {
pub cluster: String,
pub stream: String,
pub receiver: String,
pub controlled_mode: Option<ControlledMode>,
pub heartbeat_interval: Option<Duration>,
pub writes_done_grace_period: Option<Duration>,
}
Expand description
SetupRequest is the first message sent to the service to setup the RPC connection.
Fields§
§cluster: String
The cluster name.
stream: String
The stream name. The service will return the events for the given stream.
receiver: String
A name for the receiver to self-identify.
This is used to keep track of a receiver’s read progress.
controlled_mode: Option<ControlledMode>
Controller mode configuration for receiving events from the server.
heartbeat_interval: Option<Duration>
The maximum duration of server silence before the client determines the server unreachable.
The client must either receive an Event
update or a heart beat message
before this duration expires; otherwise, the client will automatically
cancel the current connection and retry.
writes_done_grace_period: Option<Duration>
The grace period after which a writes_done_request
is issued, that a
WritesDone
is expected from the client.
The server is free to cancel the RPC should this expire.
A system default will be chosen if unset.
Trait Implementations§
source§impl Clone for SetupRequest
impl Clone for SetupRequest
source§fn clone(&self) -> SetupRequest
fn clone(&self) -> SetupRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetupRequest
impl Debug for SetupRequest
source§impl Default for SetupRequest
impl Default for SetupRequest
source§impl Message for SetupRequest
impl Message for SetupRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for SetupRequest
impl PartialEq for SetupRequest
source§fn eq(&self, other: &SetupRequest) -> bool
fn eq(&self, other: &SetupRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetupRequest
Auto Trait Implementations§
impl Freeze for SetupRequest
impl RefUnwindSafe for SetupRequest
impl Send for SetupRequest
impl Sync for SetupRequest
impl Unpin for SetupRequest
impl UnwindSafe for SetupRequest
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<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