pub struct SwitchboardPullOracle<'a, C> { /* private fields */ }
Expand description
Switchboard Pull Oracle.
Implementations§
Source§impl<'a, C: Deref<Target = impl Signer> + Clone> SwitchboardPullOracle<'a, C>
impl<'a, C: Deref<Target = impl Signer> + Clone> SwitchboardPullOracle<'a, C>
Sourcepub fn from_parts(
gmsol: &'a Client<C>,
switchboard: Pubkey,
gateway: &'a Gateway,
crossbar: Option<CrossbarClient>,
) -> Self
pub fn from_parts( gmsol: &'a Client<C>, switchboard: Pubkey, gateway: &'a Gateway, crossbar: Option<CrossbarClient>, ) -> Self
Create from parts.
Sourcepub fn set_batch_size(&mut self, batch_size: NonZeroUsize) -> &mut Self
pub fn set_batch_size(&mut self, batch_size: NonZeroUsize) -> &mut Self
Set batch size.
Trait Implementations§
Source§impl<'a, C: Clone + Deref<Target = impl Signer>> PostPullOraclePrices<'a, C> for SwitchboardPullOracle<'a, C>
impl<'a, C: Clone + Deref<Target = impl Signer>> PostPullOraclePrices<'a, C> for SwitchboardPullOracle<'a, C>
Source§async fn fetch_price_update_instructions(
&self,
price_updates: &Self::PriceUpdates,
options: BundleOptions,
) -> Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>
async fn fetch_price_update_instructions( &self, price_updates: &Self::PriceUpdates, options: BundleOptions, ) -> Result<(PriceUpdateInstructions<'a, C>, HashMap<PriceProviderKind, FeedAddressMap>)>
Fetch instructions to post the price updates.
Source§impl<C: Deref<Target = impl Signer> + Clone> PullOracle for SwitchboardPullOracle<'_, C>
impl<C: Deref<Target = impl Signer> + Clone> PullOracle for SwitchboardPullOracle<'_, C>
Source§type PriceUpdates = Vec<SbPriceUpdates>
type PriceUpdates = Vec<SbPriceUpdates>
Price Updates.
Source§async fn fetch_price_updates(
&self,
feed_ids: &FeedIds,
after: Option<OffsetDateTime>,
) -> Result<Self::PriceUpdates>
async fn fetch_price_updates( &self, feed_ids: &FeedIds, after: Option<OffsetDateTime>, ) -> Result<Self::PriceUpdates>
Fetch Price Update.
Auto Trait Implementations§
impl<'a, C> !Freeze for SwitchboardPullOracle<'a, C>
impl<'a, C> !RefUnwindSafe for SwitchboardPullOracle<'a, C>
impl<'a, C> Send for SwitchboardPullOracle<'a, C>
impl<'a, C> Sync for SwitchboardPullOracle<'a, C>
impl<'a, C> Unpin for SwitchboardPullOracle<'a, C>
impl<'a, C> !UnwindSafe for SwitchboardPullOracle<'a, C>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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