pub struct DefaultFitter { /* private fields */ }Implementations§
Source§impl DefaultFitter
impl DefaultFitter
pub fn new( conn_info: Arc<ConnectInfo>, _id: Id, listen_cfg: ListenerConfig, ) -> Self
Trait Implementations§
Source§impl Clone for DefaultFitter
impl Clone for DefaultFitter
Source§fn clone(&self) -> DefaultFitter
fn clone(&self) -> DefaultFitter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Fitter for DefaultFitter
impl Fitter for DefaultFitter
Source§fn keep_alive(&self, keep_alive: &mut u16) -> Result<u16>
fn keep_alive(&self, keep_alive: &mut u16) -> Result<u16>
keep_alive - is client input value, unit: seconds
Source§fn max_mqueue_len(&self) -> usize
fn max_mqueue_len(&self) -> usize
Maximum length of message queue, default value: 1000
Source§fn mqueue_rate_limit(&self) -> (NonZeroU32, Duration)
fn mqueue_rate_limit(&self) -> (NonZeroU32, Duration)
Pop up message speed from message queue, the number of pop-up messages from the queue within
a specified time, which can effectively control the message flow rate,
default value: 100 / 10s
Source§fn max_inflight(&self) -> NonZeroU16
fn max_inflight(&self) -> NonZeroU16
max inflight
Source§fn session_expiry_interval(&self, d: Option<&Disconnect>) -> Duration
fn session_expiry_interval(&self, d: Option<&Disconnect>) -> Duration
session expiry interval
Source§fn message_expiry_interval(&self, publish: &Publish) -> Duration
fn message_expiry_interval(&self, publish: &Publish) -> Duration
message expiry interval
Source§fn max_client_topic_aliases(&self) -> u16
fn max_client_topic_aliases(&self) -> u16
client topic alias maximum, C -> S(Max Limit)
Source§fn max_server_topic_aliases(&self) -> u16
fn max_server_topic_aliases(&self) -> u16
server topic alias maximum, S(Max Limit) -> C
Auto Trait Implementations§
impl Freeze for DefaultFitter
impl RefUnwindSafe for DefaultFitter
impl Send for DefaultFitter
impl Sync for DefaultFitter
impl Unpin for DefaultFitter
impl UnsafeUnpin for DefaultFitter
impl UnwindSafe for DefaultFitter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HashExt for Twhere
T: ?Sized,
impl<T> HashExt for Twhere
T: ?Sized,
fn hash_value(self, h: u64) -> HashWrapper<Self>where
Self: Sized,
fn hash_empty(self) -> EmptyHashWrapper<Self>where
Self: Sized,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request