pub struct RpcServerSecurityConfig {
pub connection_scope: ConnectionScope,
pub auth: RpcServerAuthConfig,
}Fields§
§connection_scope: ConnectionScope§auth: RpcServerAuthConfigImplementations§
Source§impl RpcServerSecurityConfig
impl RpcServerSecurityConfig
pub fn remote_allowed(self) -> Self
pub fn local_only(self) -> Self
pub fn with_token(self, token: impl Into<String>) -> Self
pub fn with_auth(self, auth: RpcServerAuthConfig) -> Self
Trait Implementations§
Source§impl Clone for RpcServerSecurityConfig
impl Clone for RpcServerSecurityConfig
Source§fn clone(&self) -> RpcServerSecurityConfig
fn clone(&self) -> RpcServerSecurityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RpcServerSecurityConfig
impl Debug for RpcServerSecurityConfig
Source§impl Default for RpcServerSecurityConfig
impl Default for RpcServerSecurityConfig
Source§impl PartialEq for RpcServerSecurityConfig
impl PartialEq for RpcServerSecurityConfig
Source§fn eq(&self, other: &RpcServerSecurityConfig) -> bool
fn eq(&self, other: &RpcServerSecurityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RpcServerSecurityConfig
impl StructuralPartialEq for RpcServerSecurityConfig
Auto Trait Implementations§
impl Freeze for RpcServerSecurityConfig
impl RefUnwindSafe for RpcServerSecurityConfig
impl Send for RpcServerSecurityConfig
impl Sync for RpcServerSecurityConfig
impl Unpin for RpcServerSecurityConfig
impl UnsafeUnpin for RpcServerSecurityConfig
impl UnwindSafe for RpcServerSecurityConfig
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