pub(crate) fn serialize<T>(
    item: T,
) -> ::std::result::Result<Vec<u8>, Box<dyn std::error::Error + Send + Sync>>
where
    T: Serialize,
{
    let mut buf = Vec::new();
    item.serialize(&mut Serializer::new(&mut buf).with_struct_map())?;
    Ok(buf)
}
/// The standard function for serializing codec structs into a format that can be
/// used for message exchange between actor and host. Use of any other function to
/// serialize could result in breaking incompatibilities.
The standard function for serializing codec structs into a format that can be
used for message exchange between actor and host. Use of any other function to
serialize could result in breaking incompatibilities.
The standard function for serializing codec structs into a format that can be used for message exchange between actor and host . Use of any other function to serialize could result in breaking incompatibilities .
pub(crate) fn serialize<T>(
    item: T,
) -> ::std::result::Result<Vec<u8>, Box<dyn std::error::Error + Send + Sync>>
where
    T: Serialize,
{
    let mut buf = Vec::new();
    item.serialize(&mut Serializer::new(&mut buf).with_struct_map())?;
    Ok(buf)
}
pub ( crate ) fn serialize < T > ( item : T , ) -> :: std :: result :: Result < Vec < u8 > , Box < dyn std :: error :: Error + Send + Sync > > where T : Serialize , { let mut buf = Vec :: new ( ) ; item . serialize ( & mut Serializer :: new ( & mut buf ) . with_struct_map ( ) ) ? ; Ok ( buf ) }
The standard function for serializing codec structs into a format that can be
used for message exchange between actor and host.
The standard function for serializing codec structs into a format that can be used for message exchange between actor and host .
item
T
item
T