pub struct OpenSessionResponse { /* private fields */ }Expand description
Response body returned after the daemon accepts a session.
Implementations§
Source§impl OpenSessionResponse
impl OpenSessionResponse
pub fn new(session_id: SessionId, available_capabilities: CapabilitySet) -> Self
pub fn with_lease( session_id: SessionId, available_capabilities: CapabilitySet, lease: SessionLease, ) -> Self
pub fn session_id(&self) -> &SessionId
pub fn available_capabilities(&self) -> &CapabilitySet
pub fn lease(&self) -> SessionLease
Trait Implementations§
Source§impl Clone for OpenSessionResponse
impl Clone for OpenSessionResponse
Source§fn clone(&self) -> OpenSessionResponse
fn clone(&self) -> OpenSessionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenSessionResponse
impl Debug for OpenSessionResponse
Source§impl<'de> Deserialize<'de> for OpenSessionResponse
impl<'de> Deserialize<'de> for OpenSessionResponse
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 OpenSessionResponse
Source§impl PartialEq for OpenSessionResponse
impl PartialEq for OpenSessionResponse
Source§impl Serialize for OpenSessionResponse
impl Serialize for OpenSessionResponse
impl StructuralPartialEq for OpenSessionResponse
Auto Trait Implementations§
impl Freeze for OpenSessionResponse
impl RefUnwindSafe for OpenSessionResponse
impl Send for OpenSessionResponse
impl Sync for OpenSessionResponse
impl Unpin for OpenSessionResponse
impl UnsafeUnpin for OpenSessionResponse
impl UnwindSafe for OpenSessionResponse
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