Skip to main content

DefaultMQPushConsumer

Struct DefaultMQPushConsumer 

Source
pub struct DefaultMQPushConsumer { /* private fields */ }

Implementations§

Source§

impl DefaultMQPushConsumer

Source

pub fn builder( client_runtime: Arc<ClientRuntime>, ) -> DefaultMQPushConsumerBuilder

Source

pub async fn start(&mut self) -> ClientResult<()>

Source

pub async fn shutdown(&mut self)

Source

pub async fn create_topic( &mut self, key: &str, new_topic: &str, queue_num: i32, attributes: HashMap<String, String>, ) -> ClientResult<()>

Source

pub async fn create_topic_with_flag( &mut self, key: &str, new_topic: &str, queue_num: i32, topic_sys_flag: i32, attributes: HashMap<String, String>, ) -> ClientResult<()>

Source

pub async fn search_offset( &mut self, mq: &MessageQueue, timestamp: u64, ) -> ClientResult<i64>

Source

pub async fn max_offset(&mut self, mq: &MessageQueue) -> ClientResult<i64>

Source

pub async fn min_offset(&mut self, mq: &MessageQueue) -> ClientResult<i64>

Source

pub async fn earliest_msg_store_time( &mut self, mq: &MessageQueue, ) -> ClientResult<i64>

Source

pub async fn query_message( &mut self, topic: &str, key: &str, max_num: i32, begin: u64, end: u64, ) -> ClientResult<QueryResult>

Source

pub async fn view_message( &mut self, topic: &str, msg_id: &str, ) -> ClientResult<MessageExt>

Source

pub async fn send_message_back( &mut self, msg: MessageExt, delay_level: i32, broker_name: &str, ) -> ClientResult<()>

Source

pub async fn send_message_back_to_origin_broker( &mut self, msg: MessageExt, delay_level: i32, ) -> ClientResult<()>

Source

pub async fn fetch_subscribe_message_queues( &mut self, topic: &str, ) -> ClientResult<Vec<MessageQueue>>

Source

pub async fn subscribe( &mut self, topic: impl Into<CheetahString>, sub_expression: impl Into<CheetahString>, ) -> ClientResult<()>

Source

pub async fn subscribe_with_selector( &mut self, topic: &str, selector: Option<MessageSelector>, ) -> ClientResult<()>

Source

pub async fn unsubscribe(&mut self, topic: &str)

Source

pub async fn suspend(&self)

Source

pub async fn resume(&self)

Source

pub fn update_core_pool_size(&self, core_pool_size: usize) -> ClientResult<()>

Source

pub async fn consumer_running_info(&self) -> ClientResult<ConsumerRunningInfo>

Returns a Java-compatible running snapshot for broker admin diagnostics.

Source

pub fn is_pause(&self) -> bool

Returns whether this push consumer is currently paused.

Mirrors Java DefaultMQPushConsumer.isPause.

Source

pub fn is_consume_orderly(&self) -> bool

Returns whether the registered listener consumes messages orderly.

Mirrors Java DefaultMQPushConsumer.isConsumeOrderly.

Source

pub fn register_consume_message_hook( &mut self, hook: impl ConsumeMessageHook + 'static, ) -> ClientResult<()>

Registers a hook invoked before and after message consumption.

Mirrors Java DefaultMQPushConsumer.registerConsumeMessageHook.

Source

pub fn default_mq_push_consumer_impl( &self, ) -> Option<&Arc<DefaultMQPushConsumerImpl>>

Source

pub fn get_default_mq_push_consumer_impl( &self, ) -> Option<&Arc<DefaultMQPushConsumerImpl>>

Source

pub fn message_listener(&self) -> Option<Arc<MessageListener>>

Source

pub fn get_message_listener(&self) -> Option<Arc<MessageListener>>

Source

pub fn set_message_listener( &mut self, message_listener: Option<Arc<MessageListener>>, )

Source

pub fn register_message_listener( &mut self, message_listener: Option<Arc<MessageListener>>, )

Source

pub fn allocate_message_queue_strategy( &self, ) -> Option<Arc<dyn AllocateMessageQueueStrategy>>

Source

pub fn get_allocate_message_queue_strategy( &self, ) -> Option<Arc<dyn AllocateMessageQueueStrategy>>

Source

pub fn set_allocate_message_queue_strategy( &mut self, allocate_message_queue_strategy: Arc<dyn AllocateMessageQueueStrategy>, )

Source

pub fn consume_concurrently_max_span(&self) -> u32

Source

pub fn get_consume_concurrently_max_span(&self) -> u32

Source

pub fn set_consume_concurrently_max_span( &mut self, consume_concurrently_max_span: u32, )

Source

pub fn consume_from_where(&self) -> ConsumeFromWhere

Source

pub fn get_consume_from_where(&self) -> ConsumeFromWhere

Source

pub fn set_consume_from_where(&mut self, consume_from_where: ConsumeFromWhere)

Source

pub fn consume_message_batch_max_size(&self) -> u32

Source

pub fn get_consume_message_batch_max_size(&self) -> u32

Source

pub fn set_consume_message_batch_max_size( &mut self, consume_message_batch_max_size: u32, )

Source

pub fn consumer_group(&self) -> CheetahString

Source

pub fn get_consumer_group(&self) -> CheetahString

Source

pub fn get_subscription(&self) -> Arc<HashMap<CheetahString, CheetahString>> ⓘ

Source

pub fn set_consumer_group(&mut self, consumer_group: impl Into<CheetahString>)

Source

pub fn consume_thread_max(&self) -> u32

Source

pub fn get_consume_thread_max(&self) -> u32

Source

pub fn set_consume_thread_max(&mut self, consume_thread_max: u32)

Source

pub fn consume_thread_min(&self) -> u32

Source

pub fn get_consume_thread_min(&self) -> u32

Source

pub fn set_consume_thread_min(&mut self, consume_thread_min: u32)

Source

pub fn message_model(&self) -> MessageModel

Source

pub fn get_message_model(&self) -> MessageModel

Source

pub fn set_message_model(&mut self, message_model: MessageModel)

Source

pub fn pull_batch_size(&self) -> u32

Source

pub fn get_pull_batch_size(&self) -> u32

Source

pub fn set_pull_batch_size(&mut self, pull_batch_size: u32)

Source

pub fn pull_interval(&self) -> u64

Source

pub fn get_pull_interval(&self) -> u64

Source

pub fn set_pull_interval(&mut self, pull_interval: u64)

Source

pub fn pull_threshold_for_queue(&self) -> u32

Source

pub fn get_pull_threshold_for_queue(&self) -> u32

Source

pub fn set_pull_threshold_for_queue(&mut self, pull_threshold_for_queue: u32)

Source

pub fn pop_threshold_for_queue(&self) -> u32

Source

pub fn get_pop_threshold_for_queue(&self) -> u32

Source

pub fn set_pop_threshold_for_queue(&mut self, pop_threshold_for_queue: u32)

Source

pub fn pull_threshold_for_topic(&self) -> i32

Source

pub fn get_pull_threshold_for_topic(&self) -> i32

Source

pub fn set_pull_threshold_for_topic(&mut self, pull_threshold_for_topic: i32)

Source

pub fn pull_threshold_size_for_queue(&self) -> u32

Source

pub fn get_pull_threshold_size_for_queue(&self) -> u32

Source

pub fn set_pull_threshold_size_for_queue( &mut self, pull_threshold_size_for_queue: u32, )

Source

pub fn pull_threshold_size_for_topic(&self) -> i32

Source

pub fn get_pull_threshold_size_for_topic(&self) -> i32

Source

pub fn set_pull_threshold_size_for_topic( &mut self, pull_threshold_size_for_topic: i32, )

Source

pub fn consume_timestamp(&self) -> Option<CheetahString>

Source

pub fn get_consume_timestamp(&self) -> Option<CheetahString>

Source

pub fn set_consume_timestamp( &mut self, consume_timestamp: impl Into<CheetahString>, )

Source

pub fn clear_consume_timestamp(&mut self)

Source

pub fn is_post_subscription_when_pull(&self) -> bool

Source

pub fn set_post_subscription_when_pull( &mut self, post_subscription_when_pull: bool, )

Source

pub fn is_unit_mode(&self) -> bool

Source

pub fn set_unit_mode(&mut self, unit_mode: bool)

Source

pub fn adjust_thread_pool_nums_threshold(&self) -> u64

Source

pub fn get_adjust_thread_pool_nums_threshold(&self) -> u64

Source

pub fn set_adjust_thread_pool_nums_threshold( &mut self, adjust_thread_pool_nums_threshold: u64, )

Source

pub fn max_reconsume_times(&self) -> i32

Source

pub fn get_max_reconsume_times(&self) -> i32

Source

pub fn set_max_reconsume_times(&mut self, max_reconsume_times: i32)

Source

pub fn suspend_current_queue_time_millis(&self) -> u64

Source

pub fn get_suspend_current_queue_time_millis(&self) -> u64

Source

pub fn set_suspend_current_queue_time_millis( &mut self, suspend_current_queue_time_millis: u64, )

Source

pub fn consume_timeout(&self) -> u64

Source

pub fn get_consume_timeout(&self) -> u64

Source

pub fn set_consume_timeout(&mut self, consume_timeout: u64)

Source

pub fn pop_invisible_time(&self) -> u64

Source

pub fn get_pop_invisible_time(&self) -> u64

Source

pub fn set_pop_invisible_time(&mut self, pop_invisible_time: u64)

Source

pub fn await_termination_millis_when_shutdown(&self) -> u64

Source

pub fn get_await_termination_millis_when_shutdown(&self) -> u64

Source

pub fn set_await_termination_millis_when_shutdown( &mut self, await_termination_millis_when_shutdown: u64, )

Source

pub fn pull_batch_size_in_bytes(&self) -> u32

Source

pub fn get_pull_batch_size_in_bytes(&self) -> u32

Source

pub fn set_pull_batch_size_in_bytes(&mut self, pull_batch_size_in_bytes: u32)

Source

pub fn trace_dispatcher(&self) -> Option<ArcTraceDispatcher>

Source

pub fn get_trace_dispatcher(&self) -> Option<ArcTraceDispatcher>

Source

pub fn is_use_tls(&self) -> bool

Source

pub fn set_use_tls(&mut self, use_tls: bool)

Source

pub fn offset_store(&self) -> Option<Arc<OffsetStore>>

Source

pub fn get_offset_store(&self) -> Option<Arc<OffsetStore>>

Source

pub fn set_offset_store(&mut self, offset_store: Option<Arc<OffsetStore>>)

Source

pub fn pop_batch_nums(&self) -> u32

Source

pub fn get_pop_batch_nums(&self) -> u32

Source

pub fn set_pop_batch_nums(&mut self, pop_batch_nums: u32)

Source

pub fn is_client_rebalance(&self) -> bool

Source

pub fn set_client_rebalance(&mut self, client_rebalance: bool)

Source

pub fn message_queue_listener(&self) -> Option<ArcMessageQueueListener>

Source

pub fn get_message_queue_listener(&self) -> Option<ArcMessageQueueListener>

Source

pub fn set_message_queue_listener( &mut self, message_queue_listener: Option<ArcMessageQueueListener>, )

Source

pub fn apply_tuning_profile(&mut self, profile: ConsumerTuningProfile)

Source

pub fn new( client_runtime: Arc<ClientRuntime>, client_config: ClientConfig, consumer_config: ConsumerConfig, ) -> DefaultMQPushConsumer

Source

pub fn set_name_server_addr(&mut self, name_server_addr: CheetahString)

Trait Implementations§

Source§

impl MQConsumer for DefaultMQPushConsumer

Source§

async fn create_topic( &mut self, key: &str, new_topic: &str, queue_num: i32, attributes: HashMap<String, String>, ) -> ClientResult<()>

Creates a topic through the consumer’s admin facade. Read more
Source§

async fn create_topic_with_flag( &mut self, key: &str, new_topic: &str, queue_num: i32, topic_sys_flag: i32, attributes: HashMap<String, String>, ) -> ClientResult<()>

Creates a topic with an explicit topic system flag.
Source§

async fn search_offset( &mut self, mq: &MessageQueue, timestamp: u64, ) -> ClientResult<i64>

Searches the offset in a queue by store timestamp.
Source§

async fn max_offset(&mut self, mq: &MessageQueue) -> ClientResult<i64>

Returns the broker max offset for a queue.
Source§

async fn min_offset(&mut self, mq: &MessageQueue) -> ClientResult<i64>

Returns the broker min offset for a queue.
Source§

async fn earliest_msg_store_time( &mut self, mq: &MessageQueue, ) -> ClientResult<i64>

Returns the earliest store time for messages in a queue.
Source§

async fn query_message( &mut self, topic: &str, key: &str, max_num: i32, begin: u64, end: u64, ) -> ClientResult<QueryResult>

Queries messages by key in a time range.
Source§

async fn view_message( &mut self, topic: &str, msg_id: &str, ) -> ClientResult<MessageExt>

Views a message by message id.
Source§

async fn send_message_back( &mut self, msg: MessageExt, delay_level: i32, broker_name: &str, ) -> ClientResult<()>

Source§

async fn fetch_subscribe_message_queues( &mut self, topic: &str, ) -> ClientResult<Vec<MessageQueue>>

Source§

async fn send_message_back_to_origin_broker( &mut self, msg: MessageExt, delay_level: i32, ) -> ClientResult<()>

Sends a message back using the broker name carried by the message. Read more
Source§

impl MQPushConsumer for DefaultMQPushConsumer

Source§

async fn start(&mut self) -> ClientResult<()>

Asynchronously starts the consumer instance. Read more
Source§

async fn shutdown(&mut self)

Asynchronously shuts down the consumer instance. Read more
Source§

fn register_message_listener_concurrently<ML>(&mut self, message_listener: ML)
where ML: MessageListenerConcurrently + Send + Sync + 'static,

Registers a message listener for concurrent message consumption. Read more
Source§

fn register_message_listener_orderly<ML>(&mut self, message_listener: ML)
where ML: MessageListenerOrderly + Send + Sync + 'static,

Registers a message listener for orderly message consumption. Read more
Source§

async fn subscribe( &mut self, topic: impl Into<CheetahString>, sub_expression: impl Into<CheetahString>, ) -> ClientResult<()>

Asynchronously subscribes to a topic with a subscription expression. Read more
Source§

async fn subscribe_with_selector( &mut self, topic: &str, selector: Option<MessageSelector>, ) -> ClientResult<()>

Asynchronously subscribes to a topic with an optional selector. Read more
Source§

async fn unsubscribe(&mut self, topic: &str)

Asynchronously unsubscribes from a topic. Read more
Source§

async fn suspend(&self)

Asynchronously suspends message consumption. Read more
Source§

async fn resume(&self)

Asynchronously resumes message consumption. Read more
Source§

fn update_core_pool_size(&self, core_pool_size: usize) -> ClientResult<()>

Updates the core size used by the concurrent consume worker pool. Read more

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> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more