pub struct ServerOptions {
pub host: String,
pub port: u16,
pub printers: PrinterRegistry,
pub device_backend: Arc<dyn DeviceBackend>,
pub print_job: PrintJobFn,
pub state_path: PathBuf,
}Expand description
Server configuration. Construct in your main, hand to Server::run.
Fields§
§host: String§port: u16§printers: PrinterRegistry§device_backend: Arc<dyn DeviceBackend>§print_job: PrintJobFn§state_path: PathBufAuto 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