pub struct Transport { /* private fields */ }Expand description
可故障注入的进程内传输。
Implementations§
Source§impl Transport
impl Transport
Sourcepub fn partition_one_way(&self, from: NodeID, to: NodeID)
pub fn partition_one_way(&self, from: NodeID, to: NodeID)
单向阻断 from -> to。
Sourcepub fn partition_groups(&self, left: &[NodeID], right: &[NodeID])
pub fn partition_groups(&self, left: &[NodeID], right: &[NodeID])
按组双向分区:left 内节点与 right 内节点互不可达。
pub fn set_drop_rate(&self, rate: f64)
pub fn set_reorder(&self, on: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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