Skip to main content

Urma

Struct Urma 

Source
pub struct Urma;

Implementations§

Source§

impl Urma

Source

pub const MAGIC: [u8; 4]

Source

pub const VERSION: u8 = 0

Source

pub const PREFIX_BYTES: usize = 8

Source

pub const CHUNK_BYTES: usize = 32_768

Source

pub const PRIVATE_HEADER_BYTES: usize = 64

Source

pub const METADATA_BYTES: usize = 48

Source

pub const IV_BYTES: usize = 16

Source

pub const BODY_OFFSET: usize = 80

Source

pub const BODY_BYTES: usize = 32_816

Source

pub const MAC_BYTES: usize = 32

Source

pub const MAC_OFFSET: usize = 32_896

Source

pub const PRIVATE_RECORD_BYTES: usize = 32_928

Source

pub const MAX_PRIVATE_BYTES: u64 = 140_737_488_322_560

Source

pub const MAX_PUBLIC_BYTES: usize = 32_768

Source

pub const MAX_PROFILE_BYTES: usize = 128

Source

pub const PROFILE_IDENTIFIER_BYTES: usize = 8

Source

pub const AVATAR_SIDE: usize = 16

Source

pub const AVATAR_PIXELS: usize

Source

pub const AVATAR_BYTES: usize

Source

pub const AVATAR_PALETTE: [&'static str; 16]

Source

pub const CONTAINER_HEADER_BYTES: usize = 12

Source

pub const CONTENT_DOMAIN: &'static [u8] = b"URMA/V0/private/content"

Source

pub const AUTHENTICATION_DOMAIN: &'static [u8] = b"URMA/V0/private/authentication"

Source

pub const DISCOVERY_DOMAIN: &'static [u8] = b"URMA/V0/private/discovery"

Auto Trait Implementations§

§

impl Freeze for Urma

§

impl RefUnwindSafe for Urma

§

impl Send for Urma

§

impl Sync for Urma

§

impl Unpin for Urma

§

impl UnsafeUnpin for Urma

§

impl UnwindSafe for Urma

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V