pub enum SimnetEvent {
Show 19 variants
Ready(u64),
Connected(String),
Aborted(String),
Shutdown,
SystemClockUpdated(Clock),
ClockUpdate(ClockCommand),
EpochInfoUpdate(EpochInfo),
BlockHashExpired,
InfoLog(DateTime<Local>, String),
ErrorLog(DateTime<Local>, String),
WarnLog(DateTime<Local>, String),
DebugLog(DateTime<Local>, String),
PluginLoaded(String),
TransactionReceived(DateTime<Local>, VersionedTransaction),
TransactionProcessed(DateTime<Local>, TransactionMetadata, Option<TransactionError>),
AccountUpdate(DateTime<Local>, Pubkey),
TaggedProfile {
result: KeyedProfileResult,
tag: String,
timestamp: DateTime<Local>,
},
RunbookStarted(String),
RunbookCompleted(String, Option<Vec<String>>),
}Variants§
Ready(u64)
Surfnet is ready, with the initial count of processed transactions from storage
Connected(String)
Aborted(String)
Shutdown
SystemClockUpdated(Clock)
ClockUpdate(ClockCommand)
EpochInfoUpdate(EpochInfo)
BlockHashExpired
InfoLog(DateTime<Local>, String)
ErrorLog(DateTime<Local>, String)
WarnLog(DateTime<Local>, String)
DebugLog(DateTime<Local>, String)
PluginLoaded(String)
TransactionReceived(DateTime<Local>, VersionedTransaction)
TransactionProcessed(DateTime<Local>, TransactionMetadata, Option<TransactionError>)
AccountUpdate(DateTime<Local>, Pubkey)
TaggedProfile
RunbookStarted(String)
RunbookCompleted(String, Option<Vec<String>>)
Implementations§
Source§impl SimnetEvent
impl SimnetEvent
pub fn info<S>(msg: S) -> Self
pub fn warn<S>(msg: S) -> Self
pub fn error<S>(msg: S) -> Self
pub fn debug<S>(msg: S) -> Self
pub fn transaction_processed( meta: TransactionMetadata, err: Option<TransactionError>, ) -> Self
pub fn transaction_received(tx: VersionedTransaction) -> Self
pub fn account_update(pubkey: Pubkey) -> Self
pub fn tagged_profile(result: KeyedProfileResult, tag: String) -> Self
pub fn account_update_msg(&self) -> String
pub fn epoch_info_update_msg(&self) -> String
pub fn plugin_loaded_msg(&self) -> String
pub fn clock_update_msg(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimnetEvent
impl RefUnwindSafe for SimnetEvent
impl Send for SimnetEvent
impl Sync for SimnetEvent
impl Unpin for SimnetEvent
impl UnsafeUnpin for SimnetEvent
impl UnwindSafe for SimnetEvent
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more