[−][src]Struct gemini_fetch::Page
Single Gemini page
See https://gemini.circumlunar.space/docs/specification.html for more information.
Fields
url: String
Page's URL
header: Header
Page's single header
body: Option<String>
Page's optional body
Implementations
impl Page
[src]
pub async fn fetch(
full_url: String,
tls_validation: Option<ServerTLSValidation>
) -> Result<Page>
[src]
full_url: String,
tls_validation: Option<ServerTLSValidation>
) -> Result<Page>
Fetch the given Gemini link
Does not follow redirects or other status codes
pub async fn fetch_and_handle_redirects(full_url: String) -> Result<Page>
[src]
Fetch the given Gemini link while following redirects
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Page
[src]
impl Send for Page
[src]
impl Sync for Page
[src]
impl Unpin for Page
[src]
impl UnwindSafe for Page
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,