pub struct Toxic {
pub kind: ToxicKind,
pub name: String,
pub toxicity: f32,
pub direction: StreamDirection,
}
Expand description
Something that can be attached to a link to modify the way the data is passed through
Fields§
§kind: ToxicKind
The kind which also contains kind-specific attributes
name: String
The unique name for this toxic
toxicity: f32
The probability of this toxic being active
direction: StreamDirection
The direction this toxic is install on
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Toxic
impl<'de> Deserialize<'de> for Toxic
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Toxic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Toxic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Toxic
impl Serialize for Toxic
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 Toxic
impl RefUnwindSafe for Toxic
impl Send for Toxic
impl Sync for Toxic
impl Unpin for Toxic
impl UnwindSafe for Toxic
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)