pub struct ProtectProxy { /* private fields */ }Expand description
The protect proxy.
Implementations§
Source§impl ProtectProxy
impl ProtectProxy
pub fn new(config: ProtectConfig) -> Self
Sourcepub async fn run(self) -> Result<(), ProtectError>
pub async fn run(self) -> Result<(), ProtectError>
Start the proxy server. This blocks until the server shuts down.
Sourcepub fn routes_from_spec(
spec_content: &str,
) -> Result<Vec<RouteEntry>, ProtectError>
pub fn routes_from_spec( spec_content: &str, ) -> Result<Vec<RouteEntry>, ProtectError>
Build routes from spec content for testing.
Auto Trait Implementations§
impl Freeze for ProtectProxy
impl RefUnwindSafe for ProtectProxy
impl Send for ProtectProxy
impl Sync for ProtectProxy
impl Unpin for ProtectProxy
impl UnsafeUnpin for ProtectProxy
impl UnwindSafe for ProtectProxy
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