pub struct AdvancedPublisherBuilder<'a, 'b, 'c> { /* private fields */ }
Expand description
The builder of PublicationCache, allowing to configure it.
Implementations§
Source§impl<'a, 'b, 'c> AdvancedPublisherBuilder<'a, 'b, 'c>
impl<'a, 'b, 'c> AdvancedPublisherBuilder<'a, 'b, 'c>
Sourcepub fn allowed_destination(self, destination: Locality) -> Self
pub fn allowed_destination(self, destination: Locality) -> Self
Changes the zenoh::sample::Locality
applied when routing the data.
This restricts the matching subscribers that will receive the published data to the ones
that have the given zenoh::sample::Locality
.
Sourcepub fn reliability(self, reliability: Reliability) -> Self
pub fn reliability(self, reliability: Reliability) -> Self
Changes the zenoh::qos::Reliability
to apply when routing the data.
NOTE: Currently reliability
does not trigger any data retransmission on the wire. It
is rather used as a marker on the wire and it may be used to select the best link
available (e.g. TCP for reliable data and UDP for best effort data).
Sourcepub fn sample_miss_detection(self, config: MissDetectionConfig) -> Self
pub fn sample_miss_detection(self, config: MissDetectionConfig) -> Self
Allow matching AdvancedSubscribers
to detect lost samples and optionally ask for retransimission.
Retransmission can only be achieved if cache
is enabled.
Sourcepub fn cache(self, config: CacheConfig) -> Self
pub fn cache(self, config: CacheConfig) -> Self
Attach a cache to this AdvancedPublisher
.
The cache can be used for history and/or recovery.
Sourcepub fn publisher_detection(self) -> Self
pub fn publisher_detection(self) -> Self
Allow this AdvancedPublisher
to be detected by AdvancedSubscribers
.
This allows AdvancedSubscribers
to retrieve the local history.
Sourcepub fn publisher_detection_metadata<TryIntoKeyExpr>(
self,
meta: TryIntoKeyExpr,
) -> Self
pub fn publisher_detection_metadata<TryIntoKeyExpr>( self, meta: TryIntoKeyExpr, ) -> Self
A key expression added to the liveliness token key expression
Source§impl AdvancedPublisherBuilder<'_, '_, '_>
impl AdvancedPublisherBuilder<'_, '_, '_>
Source§impl AdvancedPublisherBuilder<'_, '_, '_>
impl AdvancedPublisherBuilder<'_, '_, '_>
Sourcepub fn congestion_control(self, congestion_control: CongestionControl) -> Self
pub fn congestion_control(self, congestion_control: CongestionControl) -> Self
Changes the zenoh::qos::CongestionControl
to apply when routing the data.
Sourcepub fn priority(self, priority: Priority) -> Self
pub fn priority(self, priority: Priority) -> Self
Changes the zenoh::qos::Priority
of the written data.
Sourcepub fn express(self, is_express: bool) -> Self
pub fn express(self, is_express: bool) -> Self
Changes the Express policy to apply when routing the data.
When express is set to true
, then the message will not be batched.
This usually has a positive impact on latency but negative impact on throughput.
Trait Implementations§
Source§impl EncodingBuilderTrait for AdvancedPublisherBuilder<'_, '_, '_>
impl EncodingBuilderTrait for AdvancedPublisherBuilder<'_, '_, '_>
Source§impl IntoFuture for AdvancedPublisherBuilder<'_, '_, '_>
impl IntoFuture for AdvancedPublisherBuilder<'_, '_, '_>
Source§type Output = <AdvancedPublisherBuilder<'_, '_, '_> as Resolvable>::To
type Output = <AdvancedPublisherBuilder<'_, '_, '_> as Resolvable>::To
Source§type IntoFuture = Ready<<AdvancedPublisherBuilder<'_, '_, '_> as Resolvable>::To>
type IntoFuture = Ready<<AdvancedPublisherBuilder<'_, '_, '_> as Resolvable>::To>
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Source§impl QoSBuilderTrait for AdvancedPublisherBuilder<'_, '_, '_>
impl QoSBuilderTrait for AdvancedPublisherBuilder<'_, '_, '_>
Source§fn congestion_control(self, congestion_control: CongestionControl) -> Self
fn congestion_control(self, congestion_control: CongestionControl) -> Self
Changes the zenoh::qos::CongestionControl
to apply when routing the data.
Source§fn priority(self, priority: Priority) -> Self
fn priority(self, priority: Priority) -> Self
Changes the zenoh::qos::Priority
of the written data.
Source§fn express(self, is_express: bool) -> Self
fn express(self, is_express: bool) -> Self
Changes the Express policy to apply when routing the data.
When express is set to true
, then the message will not be batched.
This usually has a positive impact on latency but negative impact on throughput.
Source§impl<'b> Resolvable for AdvancedPublisherBuilder<'_, 'b, '_>
impl<'b> Resolvable for AdvancedPublisherBuilder<'_, 'b, '_>
Source§impl Wait for AdvancedPublisherBuilder<'_, '_, '_>
impl Wait for AdvancedPublisherBuilder<'_, '_, '_>
Source§fn wait(self) -> <Self as Resolvable>::To
fn wait(self) -> <Self as Resolvable>::To
Auto Trait Implementations§
impl<'a, 'b, 'c> Freeze for AdvancedPublisherBuilder<'a, 'b, 'c>
impl<'a, 'b, 'c> !RefUnwindSafe for AdvancedPublisherBuilder<'a, 'b, 'c>
impl<'a, 'b, 'c> Send for AdvancedPublisherBuilder<'a, 'b, 'c>
impl<'a, 'b, 'c> Sync for AdvancedPublisherBuilder<'a, 'b, 'c>
impl<'a, 'b, 'c> Unpin for AdvancedPublisherBuilder<'a, 'b, 'c>
impl<'a, 'b, 'c> !UnwindSafe for AdvancedPublisherBuilder<'a, 'b, 'c>
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
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>
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>
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