pub struct OpType { /* private fields */ }
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().await?;
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 Freeze for OpType
impl RefUnwindSafe for OpType
impl Send for OpType
impl Sync for OpType
impl Unpin for OpType
impl UnwindSafe for OpType
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