pub struct Explorer { /* private fields */ }Implementations§
Source§impl Explorer
impl Explorer
pub fn mainnet() -> Self
pub fn testnet() -> Self
pub fn devnet() -> Self
pub fn custom(custom_rpc: String) -> Self
Sourcepub fn tx_url<T: Display>(&self, tx: T) -> String
pub fn tx_url<T: Display>(&self, tx: T) -> String
Ex: https://explorer.solana.com/tx/{tx} ?cluster=custom &customUrl=http://localhost:8899
Sourcepub fn thread_url<T: Display, U: Display>(
&self,
thread: T,
program_id: U,
) -> String
pub fn thread_url<T: Display, U: Display>( &self, thread: T, program_id: U, ) -> String
Ex: https://explorer.clockwork.xyz/thread/{thread} ?network=custom &customRPC=http://localhost:8899
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Explorer
impl RefUnwindSafe for Explorer
impl Send for Explorer
impl Sync for Explorer
impl Unpin for Explorer
impl UnwindSafe for Explorer
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> 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