pub struct SessionRecordInfo {
pub channel: String,
pub relay: Option<(SessionId, String)>,
pub sealed_name: Vec<u8>,
pub sealed_key: Vec<u8>,
pub signature: Vec<u8>,
pub clients: Option<u32>,
}Expand description
One of a machine’s sessions: its channel, its name and key sealed to the account.
Fields§
§channel: StringThe channel it travels on inside the machine’s relay session.
relay: Option<(SessionId, String)>The relay session that serves it now, and the token to join it;
None while no link of its machine serves it.
sealed_name: Vec<u8>Its name, sealed to the account.
sealed_key: Vec<u8>Its end-to-end secret, sealed to the account for its channel.
signature: Vec<u8>The machine’s signature of record_bytes (#133).
clients: Option<u32>How many frontends are attached to it now (#135); None from a
relay older than the field.
Trait Implementations§
Source§impl Clone for SessionRecordInfo
impl Clone for SessionRecordInfo
Source§impl Debug for SessionRecordInfo
impl Debug for SessionRecordInfo
Source§impl<'de> Deserialize<'de> for SessionRecordInfo
impl<'de> Deserialize<'de> for SessionRecordInfo
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
impl Eq for SessionRecordInfo
Source§impl PartialEq for SessionRecordInfo
impl PartialEq for SessionRecordInfo
Source§impl Serialize for SessionRecordInfo
impl Serialize for SessionRecordInfo
impl StructuralPartialEq for SessionRecordInfo
Auto Trait Implementations§
impl Forget for SessionRecordInfo
impl Freeze for SessionRecordInfo
impl Move for SessionRecordInfo
impl RefUnwindSafe for SessionRecordInfo
impl Send for SessionRecordInfo
impl Sync for SessionRecordInfo
impl Unpin for SessionRecordInfo
impl UnsafeUnpin for SessionRecordInfo
impl UnwindSafe for SessionRecordInfo
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