pub struct InMemory;Available on crate feature
inmemory only.Trait Implementations§
Source§impl Backend for InMemory
impl Backend for InMemory
type Config = InMemoryConfig
Source§type Client = InMemoryBroker
type Client = InMemoryBroker
Connection handle. Cheap to clone; shared between publisher,
consumer, and topology declarer. Public so
Broker::from_client
is possible; the Backend trait itself stays sealed.type PublisherImpl = InMemoryPublisher
type ConsumerImpl = InMemoryConsumer
type TopologyImpl = InMemoryTopologyDeclarer
type AutoscalerImpl = InMemoryAutoscalerBackend
type QueueStatsImpl = BrokerStatsProvider
async fn connect(config: Self::Config) -> Result<Self::Client>
async fn make_publisher(client: &Self::Client) -> Result<Self::PublisherImpl>
fn make_consumer(client: &Self::Client) -> Self::ConsumerImpl
fn make_declarer(client: &Self::Client) -> Self::TopologyImpl
fn make_autoscaler(client: &Self::Client) -> Self::AutoscalerImpl
fn make_stats_provider(client: &Self::Client) -> Self::QueueStatsImpl
Source§impl HasCoordinatedGroups for InMemory
impl HasCoordinatedGroups for InMemory
type ConsumerGroupConfig = InMemoryConsumerGroupConfig
type RegistryImpl = InMemoryConsumerGroupRegistry
fn make_registry(client: &Self::Client) -> Self::RegistryImpl
Auto Trait Implementations§
impl Freeze for InMemory
impl RefUnwindSafe for InMemory
impl Send for InMemory
impl Sync for InMemory
impl Unpin for InMemory
impl UnsafeUnpin for InMemory
impl UnwindSafe for InMemory
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.