pub struct Redirect {
pub kind: RedirectKind,
pub slot: u16,
pub address: String,
}Expand description
A parsed MOVED or ASK redirect.
Fields§
§kind: RedirectKind§slot: u16§address: StringAddress as host:port string. Kept as String because some deployments use hostnames.
Trait Implementations§
impl Eq for Redirect
impl StructuralPartialEq for Redirect
Auto Trait Implementations§
impl Freeze for Redirect
impl RefUnwindSafe for Redirect
impl Send for Redirect
impl Sync for Redirect
impl Unpin for Redirect
impl UnsafeUnpin for Redirect
impl UnwindSafe for Redirect
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