pub struct SessionId { /* private fields */ }Expand description
polyproto client Session ID. Must be unique for each client. Must be between 1 and =32 characters in length. The session ID is used to uniquely identify a client in the context of polyproto. Client certificates will change over time, but the session ID of a particular client will remain the same.
Constrained is implemented for this type, meaning it can be validated using .validate().
Implementations§
Source§impl SessionId
impl SessionId
Sourcepub fn new_validated(id: &str) -> Result<Self, ConstraintError>
pub fn new_validated(id: &str) -> Result<Self, ConstraintError>
Sourcepub fn to_rdn_sequence(&self) -> Name
pub fn to_rdn_sequence(&self) -> Name
Sourcepub fn to_ia5string(&self) -> Ia5String
pub fn to_ia5string(&self) -> Ia5String
Trait Implementations§
Source§impl Constrained for SessionId
impl Constrained for SessionId
Source§impl TryFrom<AttributeTypeAndValue> for SessionId
impl TryFrom<AttributeTypeAndValue> for SessionId
Source§type Error = ConstraintError
type Error = ConstraintError
The type returned in the event of a conversion error.
Source§impl TryFrom<SessionId> for RelativeDistinguishedName
impl TryFrom<SessionId> for RelativeDistinguishedName
impl Eq for SessionId
impl StructuralPartialEq for SessionId
Auto Trait Implementations§
impl Freeze for SessionId
impl RefUnwindSafe for SessionId
impl Send for SessionId
impl Sync for SessionId
impl Unpin for SessionId
impl UnwindSafe for SessionId
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