pub struct ProxyGetRequestLayer { /* private fields */ }
Expand description
Layer that applies ProxyGetRequest
which proxies the GET /path
requests to
specific RPC method calls and that strips the response.
See ProxyGetRequest
for more details.
Implementations§
source§impl ProxyGetRequestLayer
impl ProxyGetRequestLayer
sourcepub fn new(
path: impl Into<String>,
method: impl Into<String>
) -> Result<Self, RpcError>
pub fn new( path: impl Into<String>, method: impl Into<String> ) -> Result<Self, RpcError>
Creates a new ProxyGetRequestLayer
.
See ProxyGetRequest
for more details.
Trait Implementations§
source§impl Clone for ProxyGetRequestLayer
impl Clone for ProxyGetRequestLayer
source§fn clone(&self) -> ProxyGetRequestLayer
fn clone(&self) -> ProxyGetRequestLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProxyGetRequestLayer
impl Debug for ProxyGetRequestLayer
source§impl<S> Layer<S> for ProxyGetRequestLayer
impl<S> Layer<S> for ProxyGetRequestLayer
Auto Trait Implementations§
impl RefUnwindSafe for ProxyGetRequestLayer
impl Send for ProxyGetRequestLayer
impl Sync for ProxyGetRequestLayer
impl Unpin for ProxyGetRequestLayer
impl UnwindSafe for ProxyGetRequestLayer
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