pub struct SdConfig {
pub service_major_version: u32,
pub service_minor_version: u32,
pub initial_delay_max_value: f64,
pub initial_delay_min_value: f64,
pub initial_repetitions_base_delay: Option<f64>,
pub initial_repetitions_max: u32,
pub offer_cyclic_delay: Option<f64>,
pub request_response_delay_max_value: f64,
pub request_response_delay_min_value: f64,
pub ttl: u32,
}
Expand description
SD configuration for a service instance
This struct is used to configure the SD server and client behavior for a service instance. it is used for the old V1 service definitions.
Fields§
§service_major_version: u32
The major version of the service
service_minor_version: u32
The minor version of the service
initial_delay_max_value: f64
The maximum delay for the initial offer
initial_delay_min_value: f64
The minimum delay for the initial offer
initial_repetitions_base_delay: Option<f64>
The base delay for offer repetitions (if aggregated by SdServerConfig
) or find repetitions (if aggregated by SdClientConfig
)
initial_repetitions_max: u32
The maximum number of repetitions for the initial offer or find
offer_cyclic_delay: Option<f64>
The delay between two offers (if aggregated by SdServerConfig
) or finds (if aggregated by SdClientConfig
)
request_response_delay_max_value: f64
The maximum delay for a request-response cycle
request_response_delay_min_value: f64
The minimum delay for a request-response cycle
ttl: u32
The time-to-live for the service offer
Trait Implementations§
impl StructuralPartialEq for SdConfig
Auto Trait Implementations§
impl Freeze for SdConfig
impl RefUnwindSafe for SdConfig
impl Send for SdConfig
impl Sync for SdConfig
impl Unpin for SdConfig
impl UnwindSafe for SdConfig
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