Struct spacetimedb_lib::address::Address
source · pub struct Address(_);Expand description
This is the address for a SpacetimeDB database. It is a unique identifier for a particular database and once set for a database, does not change.
TODO: Evaluate other possible names: DatabaseAddress, SPAddress
TODO: Evaluate replacing this with a literal Ipv6Address which is assigned
permanently to a database.
Implementations§
source§impl Address
impl Address
pub fn from_arr(arr: &[u8; 16]) -> Self
pub fn from_hex(hex: &str) -> Result<Self, Error>
pub fn to_hex(self) -> String
pub fn to_abbreviated_hex(self) -> String
pub fn from_slice(slice: impl AsRef<[u8]>) -> Self
pub fn as_slice(&self) -> [u8; 16]
pub fn to_ipv6(self) -> Ipv6Addr
pub fn to_ipv6_string(self) -> String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Address> for Address
impl PartialEq<Address> for Address
source§impl SpacetimeType for Address
impl SpacetimeType for Address
fn make_type<S: TypespaceBuilder>(_typespace: &mut S) -> AlgebraicType
impl Copy for Address
impl Eq for Address
impl StructuralEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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