usecrate::{EncodedString, SerialiseError};usestd::sync::Arc;/// Trait for types that can encode and decode data
pubtraitEncoder{/// Attempts to encode bytes into a string representation
////// # Arguments
/// * `bytes` - The bytes to encode
////// # Returns
/// The encoded string representation
////// # Errors
/// Returns `SerialiseError` if encoding fails
fntry_encode(bytes:Arc<Vec<u8>>)->Result<EncodedString, SerialiseError>;/// Attempts to decode a string back into bytes
////// # Arguments
/// * `encoded` - The string to decode
////// # Returns
/// The decoded bytes
////// # Errors
/// Returns `SerialiseError` if decoding fails
fntry_decode(encoded:&EncodedString)->Result<Arc<Vec<u8>>, SerialiseError>;}