pub struct GraphConfig {
pub max_iterations: usize,
pub execution_timeout: Duration,
pub enable_cancellation: bool,
}Fields§
§max_iterations: usize§execution_timeout: Duration§enable_cancellation: boolImplementations§
Source§impl GraphConfig
impl GraphConfig
pub fn new() -> GraphConfig
pub fn with_max_iterations(self, max: usize) -> GraphConfig
pub fn with_timeout(self, timeout: Duration) -> GraphConfig
pub fn with_cancellation(self, enabled: bool) -> GraphConfig
Trait Implementations§
Source§impl Clone for GraphConfig
impl Clone for GraphConfig
Source§fn clone(&self) -> GraphConfig
fn clone(&self) -> GraphConfig
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 GraphConfig
impl Debug for GraphConfig
Source§impl Default for GraphConfig
impl Default for GraphConfig
Source§fn default() -> GraphConfig
fn default() -> GraphConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphConfig
impl<'de> Deserialize<'de> for GraphConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GraphConfig
impl Serialize for GraphConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GraphConfig
impl RefUnwindSafe for GraphConfig
impl Send for GraphConfig
impl Sync for GraphConfig
impl Unpin for GraphConfig
impl UnwindSafe for GraphConfig
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