pub struct Advertiser { /* private fields */ }Expand description
Holds the ServiceDaemon and the list of registered fullnames so we can
unregister cleanly on drop.
Implementations§
Source§impl Advertiser
impl Advertiser
Sourcepub fn register_all(registry: &PrinterRegistry, port: u16) -> Result<Self>
pub fn register_all(registry: &PrinterRegistry, port: u16) -> Result<Self>
Start a daemon and register every printer in the registry.
Trait Implementations§
Source§impl Drop for Advertiser
impl Drop for Advertiser
Auto Trait Implementations§
impl Freeze for Advertiser
impl RefUnwindSafe for Advertiser
impl Send for Advertiser
impl Sync for Advertiser
impl Unpin for Advertiser
impl UnsafeUnpin for Advertiser
impl UnwindSafe for Advertiser
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