#[non_exhaustive]pub struct UpstreamConfig {
pub session_id: String,
pub ack_interval: Duration,
pub expiry_interval: Duration,
pub data_ids: Vec<DataId>,
pub qos: QoS,
pub persist: bool,
pub flush_policy: FlushPolicy,
pub close_timeout: Duration,
pub send_data_points_callback: Option<SendDataPointsCallback>,
pub receive_ack_callback: Option<ReceiveAckCallback>,
pub resumed_callback: Option<UpstreamResumedCallback>,
}Expand description
アップストリーム設定
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringセッションID
ack_interval: DurationAck間隔
expiry_interval: Durationストリーム再開の有効期限
data_ids: Vec<DataId>データIDエイリアスの設定に用いるデータIDのリスト
qos: QoSストリームのQoS
persist: bool永続化の設定
flush_policy: FlushPolicyフラッシュポリシー
close_timeout: Durationクローズのタイムアウト
send_data_points_callback: Option<SendDataPointsCallback>アップストリームチャンクのフラッシュのコールバック
receive_ack_callback: Option<ReceiveAckCallback>Ackの受信のコールバック
resumed_callback: Option<UpstreamResumedCallback>アップストリームの再開のコールバック
Trait Implementations§
Source§impl Clone for UpstreamConfig
impl Clone for UpstreamConfig
Source§fn clone(&self) -> UpstreamConfig
fn clone(&self) -> UpstreamConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for UpstreamConfig
impl !UnwindSafe for UpstreamConfig
impl Freeze for UpstreamConfig
impl Send for UpstreamConfig
impl Sync for UpstreamConfig
impl Unpin for UpstreamConfig
impl UnsafeUnpin for UpstreamConfig
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