Struct adview_manager::manager::Manager
source · pub struct Manager { /* private fields */ }
Expand description
The AdView Manager
Implementations
sourceimpl Manager
impl Manager
pub fn new(
options: Options,
history: VecDeque<HistoryEntry>
) -> Result<Self, Error>
pub async fn get_targeting_input(
&self,
input: Input,
campaign_id: CampaignId
) -> Input
sourcepub async fn get_sticky_ad_unit(
&self,
campaigns: &[Campaign],
hostname: &str
) -> Option<StickyAdUnit>
pub async fn get_sticky_ad_unit(
&self,
campaigns: &[Campaign],
hostname: &str
) -> Option<StickyAdUnit>
Get a sticky [AdUnit
] if they are not disabled (see Options.disabled_sticky
).
Takes into account the History Entries, IMPRESSION_STICKINESS_TIME
and the provided AdSlot
[IPFS
] from Options
.
pub async fn get_units_for_slot_resp(&self) -> Result<Response, Error>
pub async fn get_next_ad_unit(&self) -> Result<Option<NextAdUnit>, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
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