pub fn serialize_arc_mutex<S: Serializer, T: Serialize + ?Sized>(
    item: &Arc<Mutex<T>>,
    serializer: S
) -> Result<S::Ok, S::Error>
Expand description

Serialize data T inside an Arc<Mutex<T>>. T must be serializable.

NOTE: This does not validate already serialized Mutexes and data. If multiple structs contain a clone of the Arc, and they are all being serialized, this will result in the same data being serialized, once per clone.