pub struct AppSession { /* private fields */ }Expand description
Server-selected app identity. No app keys exist in this branch. The server does not install the encrypted branch’s default expiry. Host account/logout authority still fences every use; hosts may impose a separate local deadline. Private app identities intentionally do not implement Debug or Serialize.
Implementations§
Source§impl AppSession
impl AppSession
pub fn app_uin(&self) -> u64
pub fn server_id(&self) -> &[u8] ⓘ
pub fn own_device(&self) -> &[u8; 32]
pub fn auth_flags(&self) -> u32
Sourcepub fn common_session(&self, current: AppAuthority) -> Result<Vec<u8>>
pub fn common_session(&self, current: AppAuthority) -> Result<Vec<u8>>
Source CommonSession fields4,5,6. Account UIN and app UIN are different namespaces; never use the host account’s UIN here.
Auto Trait Implementations§
impl Freeze for AppSession
impl RefUnwindSafe for AppSession
impl Send for AppSession
impl Sync for AppSession
impl Unpin for AppSession
impl UnsafeUnpin for AppSession
impl UnwindSafe for AppSession
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