Struct DeviceAddr
pub struct DeviceAddr {
pub user: String,
pub device: u32,
}Expand description
A device’s routing address: which user, which of their devices. This
is the relay’s own routing key — deliberately not libsignal’s
ProtocolAddress, since the relay knows nothing of the crypto layer.
Fields§
§user: String§device: u32Implementations§
§impl DeviceAddr
impl DeviceAddr
pub fn new(user: impl Into<String>, device: u32) -> DeviceAddr
Trait Implementations§
§impl Clone for DeviceAddr
impl Clone for DeviceAddr
§fn clone(&self) -> DeviceAddr
fn clone(&self) -> DeviceAddr
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 more§impl Debug for DeviceAddr
impl Debug for DeviceAddr
impl Eq for DeviceAddr
§impl Hash for DeviceAddr
impl Hash for DeviceAddr
§impl PartialEq for DeviceAddr
impl PartialEq for DeviceAddr
impl StructuralPartialEq for DeviceAddr
Auto Trait Implementations§
impl Freeze for DeviceAddr
impl RefUnwindSafe for DeviceAddr
impl Send for DeviceAddr
impl Sync for DeviceAddr
impl Unpin for DeviceAddr
impl UnsafeUnpin for DeviceAddr
impl UnwindSafe for DeviceAddr
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