[][src]Struct ratsio::protocol::SubscriptionRequest

pub struct SubscriptionRequest {
    pub client_id: String,
    pub subject: String,
    pub q_group: String,
    pub inbox: String,
    pub max_in_flight: i32,
    pub ack_wait_in_secs: i32,
    pub durable_name: String,
    pub start_position: i32,
    pub start_sequence: u64,
    pub start_time_delta: i64,
}

Protocol for a client to subscribe

Fields

client_id: String

ClientID

subject: String

Formal subject to subscribe to, e.g. foo.bar

q_group: String

Optional queue group

inbox: String

Inbox subject to deliver messages on

max_in_flight: i32

Maximum inflight messages without an ack allowed

ack_wait_in_secs: i32

Timeout for receiving an ack from the client

durable_name: String

Optional durable name which survives client restarts

start_position: i32

Start position

start_sequence: u64

Optional start sequence number

start_time_delta: i64

Optional start time

Implementations

impl SubscriptionRequest[src]

pub fn start_position(&self) -> StartPosition[src]

Returns the enum value of start_position, or the default if the field is set to an invalid enum value.

pub fn set_start_position(&mut self, value: StartPosition)[src]

Sets start_position to the provided enum value.

Trait Implementations

impl Clone for SubscriptionRequest[src]

impl Debug for SubscriptionRequest[src]

impl Default for SubscriptionRequest[src]

impl Message for SubscriptionRequest[src]

impl PartialEq<SubscriptionRequest> for SubscriptionRequest[src]

impl StructuralPartialEq for SubscriptionRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.