pub struct ActorId(pub DeviceId);Expand description
Cryptographic identity of a gitiverse participant (author, maintainer, founder, or runner), wrapping a wire-mesh DeviceId.
Tuple Fields§
§0: DeviceIdImplementations§
Source§impl ActorId
impl ActorId
pub const SIZE: usize = DeviceId::SIZE
pub const fn from_device_id(device_id: DeviceId) -> Self
pub const fn from_bytes(bytes: [u8; 32]) -> Self
pub const fn as_device_id(&self) -> &DeviceId
pub const fn as_bytes(&self) -> &[u8; 32]
pub fn to_hex(&self) -> String
pub fn from_hex(hex_str: &str) -> Result<Self, IdParseError>
Trait Implementations§
impl Copy for ActorId
Source§impl<'de> Deserialize<'de> for ActorId
impl<'de> Deserialize<'de> for ActorId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActorId
Source§impl Ord for ActorId
impl Ord for ActorId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ActorId
impl PartialOrd for ActorId
impl StructuralPartialEq for ActorId
Auto Trait Implementations§
impl Forget for ActorId
impl Freeze for ActorId
impl Move for ActorId
impl RefUnwindSafe for ActorId
impl Send for ActorId
impl Sync for ActorId
impl Unpin for ActorId
impl UnsafeUnpin for ActorId
impl UnwindSafe for ActorId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)