Struct zeroconf::linux::service::AvahiMdnsService
source · pub struct AvahiMdnsService { /* private fields */ }
Trait Implementations§
source§impl Debug for AvahiMdnsService
impl Debug for AvahiMdnsService
source§impl TMdnsService for AvahiMdnsService
impl TMdnsService for AvahiMdnsService
source§fn set_name(&mut self, name: &str)
fn set_name(&mut self, name: &str)
Sets the name to register this service under. If no name is set, the client’s host name will be used instead.
source§fn new(service_type: ServiceType, port: u16) -> Self
fn new(service_type: ServiceType, port: u16) -> Self
Creates a new
MdnsService
with the specified ServiceType
(e.g. _http._tcp
) and port
.source§fn name(&self) -> Option<&str>
fn name(&self) -> Option<&str>
Returns the name to register this service under. In some cases, the name of the service
may be auto-assigned, in which case in may not be available until after registration.
source§fn set_network_interface(&mut self, interface: NetworkInterface)
fn set_network_interface(&mut self, interface: NetworkInterface)
Sets the network interface to bind this service to. Read more
source§fn network_interface(&self) -> NetworkInterface
fn network_interface(&self) -> NetworkInterface
Returns the network interface to bind this service to.
source§fn set_domain(&mut self, domain: &str)
fn set_domain(&mut self, domain: &str)
Sets the domain on which to advertise the service. Read more
source§fn set_txt_record(&mut self, txt_record: TxtRecord)
fn set_txt_record(&mut self, txt_record: TxtRecord)
Sets the optional
TxtRecord
to register this service with.source§fn txt_record(&self) -> Option<&TxtRecord>
fn txt_record(&self) -> Option<&TxtRecord>
Returns the optional
TxtRecord
to register this service with.source§fn set_registered_callback(
&mut self,
registered_callback: Box<ServiceRegisteredCallback>
)
fn set_registered_callback( &mut self, registered_callback: Box<ServiceRegisteredCallback> )
Sets the
ServiceRegisteredCallback
that is invoked when the service has been
registered.source§fn set_context(&mut self, context: Box<dyn Any>)
fn set_context(&mut self, context: Box<dyn Any>)
Sets the optional user context to pass through to the callback. This is useful if you need
to share state between pre and post-callback. The context type must implement
Any
.Auto Trait Implementations§
impl !RefUnwindSafe for AvahiMdnsService
impl !Send for AvahiMdnsService
impl !Sync for AvahiMdnsService
impl Unpin for AvahiMdnsService
impl !UnwindSafe for AvahiMdnsService
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