pub struct TxSource {
pub debug_name: String,
pub identifier: String,
}
Placeholder: the data representing where we heard about a tx from.
Used to make decisions based on transaction acceptance priority from
various sources. For example, a node may want to bypass pool size
restrictions when accepting a transaction from a local wallet.
Most likely this will evolve to contain some sort of network identifier,
once we get a better sense of what transaction building might look like.
Human-readable name used for logging and errors.
Unique identifier used to distinguish this peer from others.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> DebugAny for T where T: Any + Debug, | |
impl<T> CloneAny for T where T: Clone + Any, | |
impl<T> UnsafeAny for T where T: Any, | |