Struct CodecOptions
pub struct CodecOptions {
pub allow_origin: String,
pub insecure: bool,
}Expand description
How serve_codec serves.
Fields§
§allow_origin: StringThe UI’s origin (http://127.0.0.1:7601): only its pages may call.
insecure: boolListen off loopback (only behind a proxy that signs people in: the endpoint decrypts for whoever reaches it).
Trait Implementations§
§impl Clone for CodecOptions
impl Clone for CodecOptions
§fn clone(&self) -> CodecOptions
fn clone(&self) -> CodecOptions
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 more§impl Debug for CodecOptions
impl Debug for CodecOptions
§impl Default for CodecOptions
impl Default for CodecOptions
§fn default() -> CodecOptions
fn default() -> CodecOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodecOptions
impl RefUnwindSafe for CodecOptions
impl Send for CodecOptions
impl Sync for CodecOptions
impl Unpin for CodecOptions
impl UnsafeUnpin for CodecOptions
impl UnwindSafe for CodecOptions
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