pub struct ServerOptions {
pub port: u16,
pub token: Option<String>,
pub cache_mb: usize,
pub jpeg_quality: u8,
}Expand description
Options of the native preview server.
Fields§
§port: u160 picks a free port; the chosen one is printed as the first line of stdout.
token: Option<String>If set, clients must connect to /ws?token=<token>.
cache_mb: usizeSize limit of the encoded-frame cache, in MiB.
jpeg_quality: u8JPEG quality of preview frames, 1..=100.
Trait Implementations§
Source§impl Clone for ServerOptions
impl Clone for ServerOptions
Source§impl Debug for ServerOptions
impl Debug for ServerOptions
Auto Trait Implementations§
impl Freeze for ServerOptions
impl RefUnwindSafe for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnsafeUnpin for ServerOptions
impl UnwindSafe for ServerOptions
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