Struct sentry::platform::PlatformApi
source · pub struct PlatformApi { /* private fields */ }
Expand description
The PlatformApi
is cheap to clone
Implementations
sourceimpl PlatformApi
impl PlatformApi
sourcepub fn new(platform_url: ApiUrl, keep_alive_interval: Duration) -> Result<Self>
pub fn new(platform_url: ApiUrl, keep_alive_interval: Duration) -> Result<Self>
Duration specified will be the time to remain idle before sending a TCP keepalive probe.
Sets reqwest::Client
’s reqwest::ClientBuilder::tcp_keepalive
)
sourcepub async fn fetch_slot(&self, ipfs: IPFS) -> Result<Option<AdSlotResponse>>
pub async fn fetch_slot(&self, ipfs: IPFS) -> Result<Option<AdSlotResponse>>
Fetch the AdSlot
, AdSlot.fallback_unit
, AdSlot.website
information and the AdUnit
s
of the AdSlot type ( AdSlot.ad_type
).
Trait Implementations
sourceimpl Clone for PlatformApi
impl Clone for PlatformApi
sourcefn clone(&self) -> PlatformApi
fn clone(&self) -> PlatformApi
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for PlatformApi
impl Send for PlatformApi
impl Sync for PlatformApi
impl Unpin for PlatformApi
impl !UnwindSafe for PlatformApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more