Struct async_zeroconf::OpType [−][src]
pub struct OpType { /* fields omitted */ }
Expand description
OpType
is used to indicate the service type and the kind of operation
associated with a ServiceRef. Primarily intended for debug.
Examples
let service = async_zeroconf::Service::new("Server", "_http._tcp", 80);
let service_ref = service.publish()?;
assert_eq!(service_ref.op_type().service_type(), "_http._tcp");
assert_eq!(service_ref.op_type().kind(), &async_zeroconf::OpKind::Publish);
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpType
impl UnwindSafe for OpType
Blanket Implementations
Mutably borrows from an owned value. Read more