Enum Event

Source
#[non_exhaustive]
pub enum Event {
Show 24 variants Ping(PingPayload), Joined(JoinedPayload), Left(LeftPayload), MessageCreated(MessageCreatedPayload), MessageDeleted(MessageDeletedPayload), MessageUpdated(MessageUpdatedPayload), DirectMessageCreated(DirectMessageCreatedPayload), DirectMessageDeleted(DirectMessageDeletedPayload), DirectMessageUpdated(DirectMessageUpdatedPayload), BotMessageStampsUpdated(BotMessageStampsUpdatedPayload), ChannelCreated(ChannelCreatedPayload), ChannelTopicChanged(ChannelTopicChangedPayload), UserCreated(UserCreatedPayload), StampCreated(StampCreatedPayload), TagAdded(TagAddedPayload), TagRemoved(TagRemovedPayload), UserGroupCreated(UserGroupCreatedPayload), UserGroupUpdated(UserGroupUpdatedPayload), UserGroupDeleted(UserGroupDeletedPayload), UserGroupMemberAdded(UserGroupMemberAddedPayload), UserGroupMemberUpdated(UserGroupMemberUpdatedPayload), UserGroupMemberRemoved(UserGroupMemberRemovedPayload), UserGroupAdminAdded(UserGroupAdminAddedPayload), UserGroupAdminRemoved(UserGroupAdminRemovedPayload),
}
Expand description

イベント全てを網羅するenum (non-exhaustive)

§Example

use traq_bot_http::Event;
use traq_bot_http::payloads::PingPayload;
let payload = r#"{
    "eventTime": "2019-05-07T04:50:48.582586882Z"
}"#;
let payload = serde_json::from_str::<PingPayload>(payload)?;
let event = Event::Ping(payload);

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Ping(PingPayload)

ボットの接続確認

§

Joined(JoinedPayload)

チャンネルに参加した

§

Left(LeftPayload)

チャンネルから退出した

§

MessageCreated(MessageCreatedPayload)

メッセージが作成された

§

MessageDeleted(MessageDeletedPayload)

メッセージが削除された

§

MessageUpdated(MessageUpdatedPayload)

メッセージが更新された

§

DirectMessageCreated(DirectMessageCreatedPayload)

ダイレクトメッセージが作成された

§

DirectMessageDeleted(DirectMessageDeletedPayload)

ダイレクトメッセージが削除された

§

DirectMessageUpdated(DirectMessageUpdatedPayload)

ダイレクトメッセージが更新された

§

BotMessageStampsUpdated(BotMessageStampsUpdatedPayload)

ボットのメッセージにスタンプが付けられた

§

ChannelCreated(ChannelCreatedPayload)

チャンネルが作成された

§

ChannelTopicChanged(ChannelTopicChangedPayload)

チャンネルのトピックが変更された

§

UserCreated(UserCreatedPayload)

ユーザーが作成された

§

StampCreated(StampCreatedPayload)

スタンプが作成された

§

TagAdded(TagAddedPayload)

BOTにタグが追加された

§

TagRemoved(TagRemovedPayload)

BOTからタグが削除された

§

UserGroupCreated(UserGroupCreatedPayload)

ユーザーグループが作成された

§

UserGroupUpdated(UserGroupUpdatedPayload)

ユーザーグループが更新された

§

UserGroupDeleted(UserGroupDeletedPayload)

ユーザーグループが削除された

§

UserGroupMemberAdded(UserGroupMemberAddedPayload)

ユーザーグループにメンバーが追加された

§

UserGroupMemberUpdated(UserGroupMemberUpdatedPayload)

ユーザーグループのメンバーが更新された

§

UserGroupMemberRemoved(UserGroupMemberRemovedPayload)

ユーザーグループからメンバーが削除された

§

UserGroupAdminAdded(UserGroupAdminAddedPayload)

ユーザーグループに管理者が追加された

§

UserGroupAdminRemoved(UserGroupAdminRemovedPayload)

ユーザーグループから管理者が削除された

Implementations§

Source§

impl Event

Source

pub fn kind(&self) -> EventKind

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

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

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

impl From<BotMessageStampsUpdatedPayload> for Event

Source§

fn from(event: BotMessageStampsUpdatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelCreatedPayload> for Event

Source§

fn from(event: ChannelCreatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<ChannelTopicChangedPayload> for Event

Source§

fn from(event: ChannelTopicChangedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<DirectMessageCreatedPayload> for Event

Source§

fn from(event: DirectMessageCreatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<DirectMessageDeletedPayload> for Event

Source§

fn from(event: DirectMessageDeletedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<DirectMessageUpdatedPayload> for Event

Source§

fn from(event: DirectMessageUpdatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<JoinedPayload> for Event

Source§

fn from(event: JoinedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<LeftPayload> for Event

Source§

fn from(event: LeftPayload) -> Self

Converts to this type from the input type.
Source§

impl From<MessageCreatedPayload> for Event

Source§

fn from(event: MessageCreatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<MessageDeletedPayload> for Event

Source§

fn from(event: MessageDeletedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<MessageUpdatedPayload> for Event

Source§

fn from(event: MessageUpdatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<PingPayload> for Event

Source§

fn from(event: PingPayload) -> Self

Converts to this type from the input type.
Source§

impl From<StampCreatedPayload> for Event

Source§

fn from(event: StampCreatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<TagAddedPayload> for Event

Source§

fn from(event: TagAddedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<TagRemovedPayload> for Event

Source§

fn from(event: TagRemovedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserCreatedPayload> for Event

Source§

fn from(event: UserCreatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupAdminAddedPayload> for Event

Source§

fn from(event: UserGroupAdminAddedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupAdminRemovedPayload> for Event

Source§

fn from(event: UserGroupAdminRemovedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupCreatedPayload> for Event

Source§

fn from(event: UserGroupCreatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupDeletedPayload> for Event

Source§

fn from(event: UserGroupDeletedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupMemberAddedPayload> for Event

Source§

fn from(event: UserGroupMemberAddedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupMemberRemovedPayload> for Event

Source§

fn from(event: UserGroupMemberRemovedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupMemberUpdatedPayload> for Event

Source§

fn from(event: UserGroupMemberUpdatedPayload) -> Self

Converts to this type from the input type.
Source§

impl From<UserGroupUpdatedPayload> for Event

Source§

fn from(event: UserGroupUpdatedPayload) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Event

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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<Service, Fallback> Service<Event> for OnBotMessageStampsUpdated<Service, Fallback, BotMessageStampsUpdatedPayload>
where Service: Service<BotMessageStampsUpdatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<BotMessageStampsUpdatedPayload>>::Future, <Service as Service<BotMessageStampsUpdatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnChannelCreated<Service, Fallback, ChannelCreatedPayload>
where Service: Service<ChannelCreatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<ChannelCreatedPayload>>::Future, <Service as Service<ChannelCreatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnChannelTopicChanged<Service, Fallback, ChannelTopicChangedPayload>
where Service: Service<ChannelTopicChangedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<ChannelTopicChangedPayload>>::Future, <Service as Service<ChannelTopicChangedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnDirectMessageCreated<Service, Fallback, DirectMessageCreatedPayload>
where Service: Service<DirectMessageCreatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<DirectMessageCreatedPayload>>::Future, <Service as Service<DirectMessageCreatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnDirectMessageDeleted<Service, Fallback, DirectMessageDeletedPayload>
where Service: Service<DirectMessageDeletedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<DirectMessageDeletedPayload>>::Future, <Service as Service<DirectMessageDeletedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnDirectMessageUpdated<Service, Fallback, DirectMessageUpdatedPayload>
where Service: Service<DirectMessageUpdatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<DirectMessageUpdatedPayload>>::Future, <Service as Service<DirectMessageUpdatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnJoined<Service, Fallback, JoinedPayload>
where Service: Service<JoinedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<JoinedPayload>>::Future, <Service as Service<JoinedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnLeft<Service, Fallback, LeftPayload>
where Service: Service<LeftPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<LeftPayload>>::Future, <Service as Service<LeftPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnMessageCreated<Service, Fallback, MessageCreatedPayload>
where Service: Service<MessageCreatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<MessageCreatedPayload>>::Future, <Service as Service<MessageCreatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnMessageDeleted<Service, Fallback, MessageDeletedPayload>
where Service: Service<MessageDeletedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<MessageDeletedPayload>>::Future, <Service as Service<MessageDeletedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnMessageUpdated<Service, Fallback, MessageUpdatedPayload>
where Service: Service<MessageUpdatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<MessageUpdatedPayload>>::Future, <Service as Service<MessageUpdatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnPing<Service, Fallback, PingPayload>
where Service: Service<PingPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<PingPayload>>::Future, <Service as Service<PingPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnStampCreated<Service, Fallback, StampCreatedPayload>
where Service: Service<StampCreatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<StampCreatedPayload>>::Future, <Service as Service<StampCreatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnTagAdded<Service, Fallback, TagAddedPayload>
where Service: Service<TagAddedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<TagAddedPayload>>::Future, <Service as Service<TagAddedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnTagRemoved<Service, Fallback, TagRemovedPayload>
where Service: Service<TagRemovedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<TagRemovedPayload>>::Future, <Service as Service<TagRemovedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserCreated<Service, Fallback, UserCreatedPayload>
where Service: Service<UserCreatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserCreatedPayload>>::Future, <Service as Service<UserCreatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupAdminAdded<Service, Fallback, UserGroupAdminAddedPayload>
where Service: Service<UserGroupAdminAddedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupAdminAddedPayload>>::Future, <Service as Service<UserGroupAdminAddedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupAdminRemoved<Service, Fallback, UserGroupAdminRemovedPayload>
where Service: Service<UserGroupAdminRemovedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupAdminRemovedPayload>>::Future, <Service as Service<UserGroupAdminRemovedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupCreated<Service, Fallback, UserGroupCreatedPayload>
where Service: Service<UserGroupCreatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupCreatedPayload>>::Future, <Service as Service<UserGroupCreatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupDeleted<Service, Fallback, UserGroupDeletedPayload>
where Service: Service<UserGroupDeletedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupDeletedPayload>>::Future, <Service as Service<UserGroupDeletedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupMemberAdded<Service, Fallback, UserGroupMemberAddedPayload>
where Service: Service<UserGroupMemberAddedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupMemberAddedPayload>>::Future, <Service as Service<UserGroupMemberAddedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupMemberRemoved<Service, Fallback, UserGroupMemberRemovedPayload>
where Service: Service<UserGroupMemberRemovedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupMemberRemovedPayload>>::Future, <Service as Service<UserGroupMemberRemovedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupMemberUpdated<Service, Fallback, UserGroupMemberUpdatedPayload>
where Service: Service<UserGroupMemberUpdatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupMemberUpdatedPayload>>::Future, <Service as Service<UserGroupMemberUpdatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<Service, Fallback> Service<Event> for OnUserGroupUpdated<Service, Fallback, UserGroupUpdatedPayload>
where Service: Service<UserGroupUpdatedPayload, Response = ()>, Service::Error: Into<Box<dyn Error + Send + Sync + 'static>>, Fallback: Service<Event, Response = (), Error = Error>,

Available on crate feature tower only.
Source§

type Response = ()

Responses given by the service.
Source§

type Error = Error

Errors produced by the service.
Source§

type Future = Either<WrapErrorFuture<<Service as Service<UserGroupUpdatedPayload>>::Future, <Service as Service<UserGroupUpdatedPayload>>::Error>, <Fallback as Service<Event>>::Future>

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, req: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl<State, Srv> Service<Event> for WithState<State, Srv>
where Srv: Service<(State, Event)>, State: Clone,

Available on crate feature tower only.
Source§

type Response = <Srv as Service<(State, Event)>>::Response

Responses given by the service.
Source§

type Error = <Srv as Service<(State, Event)>>::Error

Errors produced by the service.
Source§

type Future = <Srv as Service<(State, Event)>>::Future

The future response value.
Source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, request: Event) -> Self::Future

Process the request and return the response asynchronously. Read more
Source§

impl Eq for Event

Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.