pub struct LdpSession {
pub session_id: String,
pub remote_url: String,
pub remote_delegate_id: String,
pub state: SessionState,
pub payload: NegotiatedPayload,
pub trust_domain: TrustDomain,
pub created_at: DateTime<Utc>,
pub last_used: DateTime<Utc>,
pub ttl_secs: u64,
pub task_count: u64,
}Expand description
An active LDP session.
Sessions are cached by the SessionManager and reused across
multiple invoke() calls to the same delegate.
Fields§
§session_id: StringUnique session identifier.
remote_url: StringRemote delegate endpoint.
remote_delegate_id: StringRemote delegate ID.
state: SessionStateCurrent session state.
payload: NegotiatedPayloadNegotiated payload mode for this session.
trust_domain: TrustDomainTrust domain of the remote delegate.
created_at: DateTime<Utc>When the session was established.
last_used: DateTime<Utc>When the session was last used.
ttl_secs: u64Session TTL in seconds (after which it expires if unused).
task_count: u64Number of tasks submitted in this session.
Implementations§
Trait Implementations§
Source§impl Clone for LdpSession
impl Clone for LdpSession
Source§fn clone(&self) -> LdpSession
fn clone(&self) -> LdpSession
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 LdpSession
impl Debug for LdpSession
Source§impl<'de> Deserialize<'de> for LdpSession
impl<'de> Deserialize<'de> for LdpSession
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
Auto Trait Implementations§
impl Freeze for LdpSession
impl RefUnwindSafe for LdpSession
impl Send for LdpSession
impl Sync for LdpSession
impl Unpin for LdpSession
impl UnsafeUnpin for LdpSession
impl UnwindSafe for LdpSession
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