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