pub struct OpenSessionErrorResponse { /* private fields */ }Expand description
Error body returned when the daemon rejects a session open request.
Implementations§
Source§impl OpenSessionErrorResponse
impl OpenSessionErrorResponse
pub fn from_missing_capabilities(missing_capabilities: CapabilitySet) -> Self
pub fn code(&self) -> OpenSessionErrorCode
pub fn missing_capabilities(&self) -> &CapabilitySet
Trait Implementations§
Source§impl Clone for OpenSessionErrorResponse
impl Clone for OpenSessionErrorResponse
Source§fn clone(&self) -> OpenSessionErrorResponse
fn clone(&self) -> OpenSessionErrorResponse
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 OpenSessionErrorResponse
impl Debug for OpenSessionErrorResponse
Source§impl<'de> Deserialize<'de> for OpenSessionErrorResponse
impl<'de> Deserialize<'de> for OpenSessionErrorResponse
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 Display for OpenSessionErrorResponse
impl Display for OpenSessionErrorResponse
impl Eq for OpenSessionErrorResponse
Source§impl PartialEq for OpenSessionErrorResponse
impl PartialEq for OpenSessionErrorResponse
Source§impl Serialize for OpenSessionErrorResponse
impl Serialize for OpenSessionErrorResponse
impl StructuralPartialEq for OpenSessionErrorResponse
Auto Trait Implementations§
impl Freeze for OpenSessionErrorResponse
impl RefUnwindSafe for OpenSessionErrorResponse
impl Send for OpenSessionErrorResponse
impl Sync for OpenSessionErrorResponse
impl Unpin for OpenSessionErrorResponse
impl UnsafeUnpin for OpenSessionErrorResponse
impl UnwindSafe for OpenSessionErrorResponse
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