pub struct UpstreamBuilder { /* private fields */ }Expand description
Upstreamのビルダー型
Implementations§
Source§impl UpstreamBuilder
impl UpstreamBuilder
Sourcepub fn ack_interval(&mut self, ack_interval: Duration) -> &mut Self
pub fn ack_interval(&mut self, ack_interval: Duration) -> &mut Self
Ack間隔を設定
Sourcepub fn expiry_interval(&mut self, expiry_interval: Duration) -> &mut Self
pub fn expiry_interval(&mut self, expiry_interval: Duration) -> &mut Self
再開の有効期限を設定
Sourcepub fn flush_policy(&mut self, flush_policy: FlushPolicy) -> &mut Self
pub fn flush_policy(&mut self, flush_policy: FlushPolicy) -> &mut Self
フラッシュポリシーを設定
Sourcepub fn close_timeout(&mut self, close_timeout: Duration) -> &mut Self
pub fn close_timeout(&mut self, close_timeout: Duration) -> &mut Self
クローズのタイムアウトを設定
Sourcepub fn send_data_points_callback<T: Into<Option<SendDataPointsCallback>>>(
&mut self,
callback: T,
) -> &mut Self
pub fn send_data_points_callback<T: Into<Option<SendDataPointsCallback>>>( &mut self, callback: T, ) -> &mut Self
データポイントをフラッシュ時に呼ばれるコールバックを設定
Sourcepub fn receive_ack_callback<T: Into<Option<ReceiveAckCallback>>>(
&mut self,
callback: T,
) -> &mut Self
pub fn receive_ack_callback<T: Into<Option<ReceiveAckCallback>>>( &mut self, callback: T, ) -> &mut Self
Ackの受信のコールバックを設定
Sourcepub fn resumed_callback<T: Into<Option<UpstreamResumedCallback>>>(
&mut self,
callback: T,
) -> &mut Self
pub fn resumed_callback<T: Into<Option<UpstreamResumedCallback>>>( &mut self, callback: T, ) -> &mut Self
アップストリームの再開のコールバックを設定
Auto Trait Implementations§
impl !RefUnwindSafe for UpstreamBuilder
impl !UnwindSafe for UpstreamBuilder
impl Freeze for UpstreamBuilder
impl Send for UpstreamBuilder
impl Sync for UpstreamBuilder
impl Unpin for UpstreamBuilder
impl UnsafeUnpin for UpstreamBuilder
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