Skip to main content

RequestKind

Enum RequestKind 

Source
pub enum RequestKind {
Show 25 variants PeerProperties(PeerPropertiesCommand), SaslHandshake(SaslHandshakeCommand), SaslAuthenticate(SaslAuthenticateCommand), Tunes(TunesCommand), Open(OpenCommand), Close(CloseRequest), Delete(Delete), CreateStream(CreateStreamCommand), Subscribe(SubscribeCommand), Credit(CreditCommand), Metadata(MetadataCommand), DeclarePublisher(DeclarePublisherCommand), DeletePublisher(DeletePublisherCommand), Heartbeat(HeartBeatCommand), Publish(PublishCommand), QueryOffset(QueryOffsetRequest), QueryPublisherSequence(QueryPublisherRequest), StoreOffset(StoreOffset), Unsubscribe(UnSubscribeCommand), ExchangeCommandVersions(ExchangeCommandVersionsRequest), CreateSuperStream(CreateSuperStreamCommand), DeleteSuperStream(DeleteSuperStreamCommand), SuperStreamPartitions(SuperStreamPartitionsRequest), SuperStreamRoute(SuperStreamRouteRequest), ConsumerUpdateRequest(ConsumerUpdateRequestCommand),
}

Variants§

§

PeerProperties(PeerPropertiesCommand)

§

SaslHandshake(SaslHandshakeCommand)

§

SaslAuthenticate(SaslAuthenticateCommand)

§

Tunes(TunesCommand)

§

Open(OpenCommand)

§

Close(CloseRequest)

§

Delete(Delete)

§

CreateStream(CreateStreamCommand)

§

Subscribe(SubscribeCommand)

§

Credit(CreditCommand)

§

Metadata(MetadataCommand)

§

DeclarePublisher(DeclarePublisherCommand)

§

DeletePublisher(DeletePublisherCommand)

§

Heartbeat(HeartBeatCommand)

§

Publish(PublishCommand)

§

QueryOffset(QueryOffsetRequest)

§

QueryPublisherSequence(QueryPublisherRequest)

§

StoreOffset(StoreOffset)

§

Unsubscribe(UnSubscribeCommand)

§

ExchangeCommandVersions(ExchangeCommandVersionsRequest)

§

CreateSuperStream(CreateSuperStreamCommand)

§

DeleteSuperStream(DeleteSuperStreamCommand)

§

SuperStreamPartitions(SuperStreamPartitionsRequest)

§

SuperStreamRoute(SuperStreamRouteRequest)

§

ConsumerUpdateRequest(ConsumerUpdateRequestCommand)

Trait Implementations§

Source§

impl Debug for RequestKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Encoder for RequestKind

Source§

fn encoded_size(&self) -> u32

Source§

fn encode(&self, writer: &mut impl Write) -> Result<(), EncodeError>

Source§

fn encoded_size_version_2(&self) -> u32

Source§

fn encode_version_2(&self, writer: &mut impl Write) -> Result<(), EncodeError>

Source§

impl Eq for RequestKind

Source§

impl From<CloseRequest> for RequestKind

Source§

fn from(cmd: CloseRequest) -> Self

Converts to this type from the input type.
Source§

impl From<ConsumerUpdateRequestCommand> for RequestKind

Source§

fn from(cmd: ConsumerUpdateRequestCommand) -> Self

Converts to this type from the input type.
Source§

impl From<CreateStreamCommand> for RequestKind

Source§

fn from(cmd: CreateStreamCommand) -> Self

Converts to this type from the input type.
Source§

impl From<CreateSuperStreamCommand> for RequestKind

Source§

fn from(cmd: CreateSuperStreamCommand) -> Self

Converts to this type from the input type.
Source§

impl From<CreditCommand> for RequestKind

Source§

fn from(cmd: CreditCommand) -> Self

Converts to this type from the input type.
Source§

impl From<DeclarePublisherCommand> for RequestKind

Source§

fn from(cmd: DeclarePublisherCommand) -> Self

Converts to this type from the input type.
Source§

impl From<Delete> for RequestKind

Source§

fn from(cmd: Delete) -> Self

Converts to this type from the input type.
Source§

impl From<DeletePublisherCommand> for RequestKind

Source§

fn from(cmd: DeletePublisherCommand) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteSuperStreamCommand> for RequestKind

Source§

fn from(cmd: DeleteSuperStreamCommand) -> Self

Converts to this type from the input type.
Source§

impl From<ExchangeCommandVersionsRequest> for RequestKind

Source§

fn from(cmd: ExchangeCommandVersionsRequest) -> Self

Converts to this type from the input type.
Source§

impl From<HeartBeatCommand> for RequestKind

Source§

fn from(cmd: HeartBeatCommand) -> Self

Converts to this type from the input type.
Source§

impl From<MetadataCommand> for RequestKind

Source§

fn from(cmd: MetadataCommand) -> Self

Converts to this type from the input type.
Source§

impl From<OpenCommand> for RequestKind

Source§

fn from(cmd: OpenCommand) -> Self

Converts to this type from the input type.
Source§

impl From<PeerPropertiesCommand> for RequestKind

Source§

fn from(cmd: PeerPropertiesCommand) -> Self

Converts to this type from the input type.
Source§

impl From<PublishCommand> for RequestKind

Source§

fn from(cmd: PublishCommand) -> Self

Converts to this type from the input type.
Source§

impl From<QueryOffsetRequest> for RequestKind

Source§

fn from(cmd: QueryOffsetRequest) -> Self

Converts to this type from the input type.
Source§

impl From<QueryPublisherRequest> for RequestKind

Source§

fn from(cmd: QueryPublisherRequest) -> Self

Converts to this type from the input type.
Source§

impl From<SaslAuthenticateCommand> for RequestKind

Source§

fn from(cmd: SaslAuthenticateCommand) -> Self

Converts to this type from the input type.
Source§

impl From<SaslHandshakeCommand> for RequestKind

Source§

fn from(cmd: SaslHandshakeCommand) -> Self

Converts to this type from the input type.
Source§

impl From<StoreOffset> for RequestKind

Source§

fn from(cmd: StoreOffset) -> Self

Converts to this type from the input type.
Source§

impl From<SubscribeCommand> for RequestKind

Source§

fn from(cmd: SubscribeCommand) -> Self

Converts to this type from the input type.
Source§

impl From<SuperStreamPartitionsRequest> for RequestKind

Source§

fn from(cmd: SuperStreamPartitionsRequest) -> Self

Converts to this type from the input type.
Source§

impl From<SuperStreamRouteRequest> for RequestKind

Source§

fn from(cmd: SuperStreamRouteRequest) -> Self

Converts to this type from the input type.
Source§

impl From<TunesCommand> for RequestKind

Source§

fn from(cmd: TunesCommand) -> Self

Converts to this type from the input type.
Source§

impl From<UnSubscribeCommand> for RequestKind

Source§

fn from(cmd: UnSubscribeCommand) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RequestKind

Source§

fn eq(&self, other: &RequestKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RequestKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.