pub struct Tab { /* private fields */ }Implementations§
Source§impl Tab
impl Tab
pub fn session(&self) -> &Session
pub fn current(&self) -> Option<Url>
pub fn set_current(&self, page: Option<Url>)
pub fn fetch(&self, method: Method, url: impl IntoUrl) -> RequestBuilder
pub fn xhr(&self, url: impl IntoUrl) -> RequestBuilder
pub fn post_json( &self, url: impl IntoUrl, body: &impl Serialize, ) -> RequestBuilder
pub fn subresource(&self, url: impl IntoUrl, preset: Preset) -> RequestBuilder
pub async fn open(&self, url: impl IntoUrl) -> Result<Response>
pub async fn follow(&self, url: impl IntoUrl) -> Result<Response>
pub async fn submit<I, P>(
&self,
url: impl IntoUrl,
fields: I,
) -> Result<Response>where
I: IntoIterator<Item = P>,
P: IntoParamPair,
pub async fn submit_form(&self, form: &Form) -> Result<Response>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tab
impl !UnwindSafe for Tab
impl Freeze for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnsafeUnpin for Tab
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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