Struct thor::FragmentExporter
source · pub struct FragmentExporter {
dump_folder: PathBuf,
}
Fields§
§dump_folder: PathBuf
Implementations§
source§impl FragmentExporter
impl FragmentExporter
pub fn new(dump_folder: PathBuf) -> Result<Self, FragmentExporterError>
pub fn read(&self) -> Result<Vec<Fragment>, FragmentExporterError>
pub fn read_as_bytes(&self) -> Result<Vec<Vec<u8>>, FragmentExporterError>
pub fn dump_to_file( &self, fragment: &Fragment, sender: &Wallet, via: &dyn FragmentNode ) -> Result<(), FragmentExporterError>
pub fn dump_to_file_no_sender( &self, fragment: &Fragment, via: &dyn FragmentNode ) -> Result<(), FragmentExporterError>
fn generate_file_name_without_sender( &self, fragment: &Fragment, via: &dyn FragmentNode ) -> String
fn generate_file_name( &self, fragment: &Fragment, sender: &Wallet, via: &dyn FragmentNode ) -> String
fn format_fragment(&self, fragment: &Fragment) -> String
fn format_address(&self, address: Address) -> String
fn format_id(&self, id: FragmentId) -> String
fn format_hash(&self, hash: String) -> String
Auto Trait Implementations§
impl RefUnwindSafe for FragmentExporter
impl Send for FragmentExporter
impl Sync for FragmentExporter
impl Unpin for FragmentExporter
impl UnwindSafe for FragmentExporter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request