pub struct RuntimeSessionSpec {
pub services: Vec<ProtocolLaunchSpec>,
pub readiness_timeout: Option<u64>,
}Expand description
Runtime session configuration shared by CLI controllers.
Fields§
§services: Vec<ProtocolLaunchSpec>Protocol services that should be launched in the session.
readiness_timeout: Option<u64>Optional readiness timeout override in milliseconds.
Implementations§
Source§impl RuntimeSessionSpec
impl RuntimeSessionSpec
Sourcepub fn readiness_duration(&self, fallback: Duration) -> Duration
pub fn readiness_duration(&self, fallback: Duration) -> Duration
Returns the configured readiness timeout or a fallback duration.
Trait Implementations§
Source§impl Clone for RuntimeSessionSpec
impl Clone for RuntimeSessionSpec
Source§fn clone(&self) -> RuntimeSessionSpec
fn clone(&self) -> RuntimeSessionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeSessionSpec
impl Debug for RuntimeSessionSpec
Source§impl Default for RuntimeSessionSpec
impl Default for RuntimeSessionSpec
Source§fn default() -> RuntimeSessionSpec
fn default() -> RuntimeSessionSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeSessionSpec
impl<'de> Deserialize<'de> for RuntimeSessionSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RuntimeSessionSpec
impl PartialEq for RuntimeSessionSpec
Source§impl Serialize for RuntimeSessionSpec
impl Serialize for RuntimeSessionSpec
impl StructuralPartialEq for RuntimeSessionSpec
Auto Trait Implementations§
impl Freeze for RuntimeSessionSpec
impl RefUnwindSafe for RuntimeSessionSpec
impl Send for RuntimeSessionSpec
impl Sync for RuntimeSessionSpec
impl Unpin for RuntimeSessionSpec
impl UnsafeUnpin for RuntimeSessionSpec
impl UnwindSafe for RuntimeSessionSpec
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