pub struct InterfaceRegistration {
pub interface_id: InterfaceId,
pub interface_version: u32,
pub method_ids: HashSet<MethodId>,
pub method_names: Vec<String>,
pub instance_id: InstanceId,
pub service_name: String,
pub interface_name: String,
}Expand description
Registration info for an interface
Fields§
§interface_id: InterfaceId§interface_version: u32§method_ids: HashSet<MethodId>§method_names: Vec<String>§instance_id: InstanceId§service_name: String§interface_name: StringImplementations§
Source§impl InterfaceRegistration
impl InterfaceRegistration
Sourcepub fn new(
interface_name: &str,
service_name: &str,
method_names: &[&str],
instance_id: InstanceId,
) -> InterfaceRegistration
pub fn new( interface_name: &str, service_name: &str, method_names: &[&str], instance_id: InstanceId, ) -> InterfaceRegistration
Create a new interface registration
Sourcepub fn with_version(
self,
major: u16,
minor: u16,
patch: u16,
) -> InterfaceRegistration
pub fn with_version( self, major: u16, minor: u16, patch: u16, ) -> InterfaceRegistration
Set the interface version
Trait Implementations§
Source§impl Clone for InterfaceRegistration
impl Clone for InterfaceRegistration
Source§fn clone(&self) -> InterfaceRegistration
fn clone(&self) -> InterfaceRegistration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InterfaceRegistration
impl RefUnwindSafe for InterfaceRegistration
impl Send for InterfaceRegistration
impl Sync for InterfaceRegistration
impl Unpin for InterfaceRegistration
impl UnsafeUnpin for InterfaceRegistration
impl UnwindSafe for InterfaceRegistration
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