Struct jsonrpsee_http_server::AccessControlBuilder [−][src]
pub struct AccessControlBuilder { /* fields omitted */ }
Expand description
Convenience builder pattern
Implementations
impl AccessControlBuilder
[src]
impl AccessControlBuilder
[src]pub fn allow_host(self, host: Host) -> Self
[src]
pub fn allow_host(self, host: Host) -> Self
[src]Configure allow host.
pub fn cors_allow_origin(self, allow_origin: AccessControlAllowOrigin) -> Self
[src]
pub fn cors_allow_origin(self, allow_origin: AccessControlAllowOrigin) -> Self
[src]Configure CORS origin.
pub fn cors_max_age(self, max_age: u32) -> Self
[src]
pub fn cors_max_age(self, max_age: u32) -> Self
[src]Configure CORS max age.
pub fn cors_allow_header(self, header: String) -> Self
[src]
pub fn cors_allow_header(self, header: String) -> Self
[src]Configure which CORS header that is allowed.
pub fn continue_on_invalid_cors(self, continue_on_invalid_cors: bool) -> Self
[src]
pub fn continue_on_invalid_cors(self, continue_on_invalid_cors: bool) -> Self
[src]Enable or disable to continue with invalid CORS.
pub fn build(self) -> AccessControl
[src]
pub fn build(self) -> AccessControl
[src]Build.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AccessControlBuilder
impl Send for AccessControlBuilder
impl Sync for AccessControlBuilder
impl Unpin for AccessControlBuilder
impl UnwindSafe for AccessControlBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,