pub struct PublicationConfig {
pub minimum_expiry: Duration,
pub default_expiry: Duration,
pub capacity: usize,
pub body_limit: usize,
pub publisher: Config,
}Expand description
Inbound publication admission and expiry policy.
Fields§
§minimum_expiry: DurationMinimum positive expiry; smaller requests receive 423.
default_expiry: DurationExpiry used when the request omits Expires.
capacity: usizeMaximum active resources held by the endpoint driver.
body_limit: usizeMaximum accepted PUBLISH body.
publisher: ConfigOutbound publisher policy.
Trait Implementations§
Source§impl Clone for PublicationConfig
impl Clone for PublicationConfig
Source§fn clone(&self) -> PublicationConfig
fn clone(&self) -> PublicationConfig
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 Debug for PublicationConfig
impl Debug for PublicationConfig
Auto Trait Implementations§
impl Freeze for PublicationConfig
impl RefUnwindSafe for PublicationConfig
impl Send for PublicationConfig
impl Sync for PublicationConfig
impl Unpin for PublicationConfig
impl UnsafeUnpin for PublicationConfig
impl UnwindSafe for PublicationConfig
Blanket Implementations§
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more