pub struct ServiceSpec { /* private fields */ }Available on crate features
alloc or no-atomic or std only.Expand description
Spec for registering a service.
Implementations§
Source§impl ServiceSpec
impl ServiceSpec
Sourcepub const fn new(records: ServiceRecords) -> Self
pub const fn new(records: ServiceRecords) -> Self
Wrap a ServiceRecords bundle as a spec.
Sourcepub const fn records(&self) -> &ServiceRecords
pub const fn records(&self) -> &ServiceRecords
Borrow the inner records.
Sourcepub fn into_records(self) -> ServiceRecords
pub fn into_records(self) -> ServiceRecords
Consume the spec, returning the inner records.
Trait Implementations§
Source§impl Clone for ServiceSpec
impl Clone for ServiceSpec
Source§fn clone(&self) -> ServiceSpec
fn clone(&self) -> ServiceSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceSpec
impl Debug for ServiceSpec
impl Eq for ServiceSpec
Source§impl PartialEq for ServiceSpec
impl PartialEq for ServiceSpec
Source§fn eq(&self, other: &ServiceSpec) -> bool
fn eq(&self, other: &ServiceSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceSpec
Auto Trait Implementations§
impl Freeze for ServiceSpec
impl RefUnwindSafe for ServiceSpec
impl Send for ServiceSpec
impl Sync for ServiceSpec
impl Unpin for ServiceSpec
impl UnsafeUnpin for ServiceSpec
impl UnwindSafe for ServiceSpec
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