#[repr(C)]pub struct moq_server_config {
pub bind: *const c_char,
pub bind_len: usize,
pub tls_cert: *const moq_string,
pub tls_cert_len: usize,
pub tls_key: *const moq_string,
pub tls_key_len: usize,
pub tls_generate: *const moq_string,
pub tls_generate_len: usize,
}Expand description
Settings for moq_server_listen.
Zero it and set only what you need; new settings are appended, and a zeroed
one keeps the previous behavior. TLS is required: set tls_cert and tls_key,
or tls_generate.
Fields§
§bind: *const c_charAddress to bind, e.g. [::]:443, 127.0.0.1:0, or localhost:4443; NULL
for [::]:443. A port of 0 picks one; read it back with moq_server_addr.
bind_len: usize§tls_cert: *const moq_stringCertificate chain paths (PEM), paired with tls_key.
tls_cert_len: usize§tls_key: *const moq_stringPrivate key paths (PEM), paired with tls_cert.
tls_key_len: usize§tls_generate: *const moq_stringHostnames to generate a self-signed certificate for. Clients must pin its fingerprint (moq_server_fingerprints) or disable verification.
tls_generate_len: usizeAuto Trait Implementations§
impl !Send for moq_server_config
impl !Sync for moq_server_config
impl Freeze for moq_server_config
impl RefUnwindSafe for moq_server_config
impl Unpin for moq_server_config
impl UnsafeUnpin for moq_server_config
impl UnwindSafe for moq_server_config
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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