pub struct ProtocolAddress {
pub id: String,
pub device_id: u32,
}Fields§
§id: String§device_id: u32Implementations§
Source§impl ProtocolAddress
impl ProtocolAddress
pub fn from_string(encoded_address: &str) -> Result<Self, Box<dyn Error>>
pub fn from_encoded(encoded_address: &str) -> Result<Self, Box<dyn Error>>
pub fn new(id: String, device_id: u32) -> Result<Self, Box<dyn Error>>
pub fn to_string(&self) -> String
pub fn is(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for ProtocolAddress
impl Clone for ProtocolAddress
Source§fn clone(&self) -> ProtocolAddress
fn clone(&self) -> ProtocolAddress
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 moreSource§impl Debug for ProtocolAddress
impl Debug for ProtocolAddress
Source§impl PartialEq for ProtocolAddress
impl PartialEq for ProtocolAddress
impl Eq for ProtocolAddress
impl StructuralPartialEq for ProtocolAddress
Auto Trait Implementations§
impl Freeze for ProtocolAddress
impl RefUnwindSafe for ProtocolAddress
impl Send for ProtocolAddress
impl Sync for ProtocolAddress
impl Unpin for ProtocolAddress
impl UnwindSafe for ProtocolAddress
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