[][src]Struct solana_faucet::faucet::Faucet

pub struct Faucet {
    pub time_slice: Duration,
    pub request_current: u64,
    // some fields omitted
}

Fields

time_slice: Durationrequest_current: u64

Methods

impl Faucet[src]

pub fn new(
    mint_keypair: Keypair,
    time_input: Option<u64>,
    request_cap_input: Option<u64>
) -> Faucet
[src]

pub fn check_request_limit(&mut self, request_amount: u64) -> bool[src]

pub fn clear_request_count(&mut self)[src]

pub fn add_ip_to_cache(&mut self, ip: IpAddr)[src]

pub fn clear_ip_cache(&mut self)[src]

pub fn build_airdrop_transaction(
    &mut self,
    req: FaucetRequest
) -> Result<Transaction, Error>
[src]

pub fn process_faucet_request(
    &mut self,
    bytes: &BytesMut
) -> Result<Bytes, Error>
[src]

Trait Implementations

impl Drop for Faucet[src]

Auto Trait Implementations

impl RefUnwindSafe for Faucet

impl Send for Faucet

impl Sync for Faucet

impl Unpin for Faucet

impl UnwindSafe for Faucet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,