pub struct TimeoutsConfig {
pub inbound_message_secs: Option<u64>,
pub sharing_round_secs: Option<u64>,
pub unpair_ack_secs: Option<u64>,
pub get_share_response_secs: Option<u64>,
pub pairing_secs: Option<u64>,
pub expired_channels: Option<ExpiredChannelsConfig>,
}Expand description
The four waiting periods of Timeouts, in whole seconds, each one
optional.
Unlike the other nested settings of DeRecProtocolConfig, this one is
merged per field: a field left None keeps the value the builder already
holds, so one config can set the sharing round and a later one the
inbound-message window without either undoing the other. The merged
result goes through
with_timeouts,
which clamps every value to at least one second.
In JSON the fields are inbound_message_secs, sharing_round_secs,
unpair_ack_secs, get_share_response_secs, pairing_secs (non-negative
integers) and
expired_channels
(an ExpiredChannelsConfig object).
Fields§
§inbound_message_secs: Option<u64>Timeouts::inbound_message, in seconds.
sharing_round_secs: Option<u64>Timeouts::sharing_round, in seconds.
unpair_ack_secs: Option<u64>Timeouts::unpair_ack, in seconds.
Timeouts::get_share_response, in seconds.
pairing_secs: Option<u64>Timeouts::pairing, in seconds.
expired_channels: Option<ExpiredChannelsConfig>Trait Implementations§
Source§impl Clone for TimeoutsConfig
impl Clone for TimeoutsConfig
impl Copy for TimeoutsConfig
Source§impl Debug for TimeoutsConfig
impl Debug for TimeoutsConfig
Source§impl Default for TimeoutsConfig
impl Default for TimeoutsConfig
Source§impl<'de> Deserialize<'de> for TimeoutsConfigwhere
TimeoutsConfig: Default,
impl<'de> Deserialize<'de> for TimeoutsConfigwhere
TimeoutsConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TimeoutsConfig
Source§impl PartialEq for TimeoutsConfig
impl PartialEq for TimeoutsConfig
Source§impl Serialize for TimeoutsConfig
impl Serialize for TimeoutsConfig
impl StructuralPartialEq for TimeoutsConfig
Auto Trait Implementations§
impl Forget for TimeoutsConfig
impl Freeze for TimeoutsConfig
impl Move for TimeoutsConfig
impl RefUnwindSafe for TimeoutsConfig
impl Send for TimeoutsConfig
impl Sync for TimeoutsConfig
impl Unpin for TimeoutsConfig
impl UnsafeUnpin for TimeoutsConfig
impl UnwindSafe for TimeoutsConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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