pub struct ClientIpLayer { /* private fields */ }Available on crate feature
server only.Implementations§
Source§impl ClientIpLayer
impl ClientIpLayer
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ClientIpLayer with default config
Sourcepub fn with_config(self, config: ClientIpConfig) -> Self
pub fn with_config(self, config: ClientIpConfig) -> Self
Create a new ClientIpLayer with the given ClientIpConfig
Trait Implementations§
Source§impl Clone for ClientIpLayer
impl Clone for ClientIpLayer
Source§fn clone(&self) -> ClientIpLayer
fn clone(&self) -> ClientIpLayer
Returns a duplicate 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 ClientIpLayer
impl Debug for ClientIpLayer
Source§impl Default for ClientIpLayer
impl Default for ClientIpLayer
Source§fn default() -> ClientIpLayer
fn default() -> ClientIpLayer
Returns the “default value” for a type. Read more
Source§impl<S> Layer<S> for ClientIpLayer
impl<S> Layer<S> for ClientIpLayer
Auto Trait Implementations§
impl Freeze for ClientIpLayer
impl RefUnwindSafe for ClientIpLayer
impl Send for ClientIpLayer
impl Sync for ClientIpLayer
impl Unpin for ClientIpLayer
impl UnwindSafe for ClientIpLayer
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