Struct SameOrigin
pub struct SameOrigin { /* private fields */ }
A redirection Policy that stops cross-origin redirections.
Implementations
impl SameOrigin
fn new() -> SelfCreate a new
SameOrigin.
Trait Implementations
impl Clone for SameOrigin
fn clone(&self) -> SameOrigin
impl Copy for SameOrigin
impl Debug for SameOrigin
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for SameOrigin
fn default() -> SameOrigin
impl<B, E> Policy<B, E> for SameOrigin
fn redirect(&mut self, attempt: &Attempt<'_>) -> Result<Action, E>
Auto Trait Implementations
impl Freeze for SameOrigin
impl RefUnwindSafe for SameOrigin
impl Send for SameOrigin
impl Sync for SameOrigin
impl Unpin for SameOrigin
impl UnsafeUnpin for SameOrigin
impl UnwindSafe for SameOrigin
Blanket Implementations
impl<T> Any for SameOrigin
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SameOrigin
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SameOrigin
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SameOrigin
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SameOrigin
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for SameOrigin
impl<T> PolicyExt for SameOrigin
where
T: ?Sized,
fn and<P, B, E>(self, other: P) -> And<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,fn or<P, B, E>(self, other: P) -> Or<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,
impl<T> ToOwned for SameOrigin
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for SameOrigin
impl<T, U> Into<U> for SameOrigin
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SameOrigin
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for SameOrigin
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>