pub struct SessionManagerState { /* private fields */ }Expand description
Manages data plane sessions.
A session is identified by the pseudo SCION subscriber identity (PSSID) from the SNAP token. At any point in time, there is at most one session open with a data plane per PSSID.
Note: We might need to weaken this constraint in the future to allow multiple session per data plane to allow session failover in case only a single data plane is running.
Implementations§
Trait Implementations§
Source§impl Clone for SessionManagerState
impl Clone for SessionManagerState
Source§fn clone(&self) -> SessionManagerState
fn clone(&self) -> SessionManagerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionManagerState
impl Debug for SessionManagerState
Source§impl Default for SessionManagerState
impl Default for SessionManagerState
Source§impl<'de> Deserialize<'de> for SessionManagerState
impl<'de> Deserialize<'de> for SessionManagerState
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 From<&SessionManagerState> for SessionManagerStateDto
impl From<&SessionManagerState> for SessionManagerStateDto
Source§fn from(value: &SessionManagerState) -> Self
fn from(value: &SessionManagerState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionManagerState
impl PartialEq for SessionManagerState
Source§impl Serialize for SessionManagerState
impl Serialize for SessionManagerState
Source§impl SessionManager for SessionManagerState
impl SessionManager for SessionManagerState
Source§fn open(
&mut self,
pssid: Pssid,
data_plane_id: DataPlaneId,
) -> Result<SessionGrant, SessionOpenError>
fn open( &mut self, pssid: Pssid, data_plane_id: DataPlaneId, ) -> Result<SessionGrant, SessionOpenError>
Open a session for the given SNAP token claims and data plane ID.
impl Eq for SessionManagerState
impl StructuralPartialEq for SessionManagerState
Auto Trait Implementations§
impl Freeze for SessionManagerState
impl RefUnwindSafe for SessionManagerState
impl Send for SessionManagerState
impl Sync for SessionManagerState
impl Unpin for SessionManagerState
impl UnwindSafe for SessionManagerState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request