pub struct NowSessionMsgBoxRspMsg<'a> { /* private fields */ }Expand description
The NOW_SESSION_MSGBOX_RSP_MSG is a message sent in response to NOW_SESSION_MSGBOX_REQ_MSG if the NOW_MSGBOX_FLAG_RESPONSE has been set, and contains the result from the message box dialog.
NOW_PROTO: NOW_SESSION_MSGBOX_RSP_MSG
Implementations§
Source§impl<'a> NowSessionMsgBoxRspMsg<'a>
impl<'a> NowSessionMsgBoxRspMsg<'a>
pub fn new_success(request_id: u32, response: NowMsgBoxResponse) -> Self
pub fn new_error( request_id: u32, error: impl Into<NowStatusError>, ) -> EncodeResult<Self>
pub fn request_id(&self) -> u32
Sourcepub fn to_result(&self) -> Result<NowMsgBoxResponse, NowStatusError>
pub fn to_result(&self) -> Result<NowMsgBoxResponse, NowStatusError>
Get the response from the message box dialog. Returns (Err(_) if the request has failed).
Trait Implementations§
Source§impl<'a> Clone for NowSessionMsgBoxRspMsg<'a>
impl<'a> Clone for NowSessionMsgBoxRspMsg<'a>
Source§fn clone(&self) -> NowSessionMsgBoxRspMsg<'a>
fn clone(&self) -> NowSessionMsgBoxRspMsg<'a>
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<'a> Debug for NowSessionMsgBoxRspMsg<'a>
impl<'a> Debug for NowSessionMsgBoxRspMsg<'a>
Source§impl<'de> Decode<'de> for NowSessionMsgBoxRspMsg<'de>
impl<'de> Decode<'de> for NowSessionMsgBoxRspMsg<'de>
Source§fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
Decodes an instance of
Self from the given byte stream. Read moreSource§impl Encode for NowSessionMsgBoxRspMsg<'_>
impl Encode for NowSessionMsgBoxRspMsg<'_>
Source§impl<'a> From<NowSessionMsgBoxRspMsg<'a>> for NowMessage<'a>
impl<'a> From<NowSessionMsgBoxRspMsg<'a>> for NowMessage<'a>
Source§fn from(val: NowSessionMsgBoxRspMsg<'a>) -> Self
fn from(val: NowSessionMsgBoxRspMsg<'a>) -> Self
Converts to this type from the input type.
Source§impl IntoOwned for NowSessionMsgBoxRspMsg<'_>
impl IntoOwned for NowSessionMsgBoxRspMsg<'_>
Source§type Owned = NowSessionMsgBoxRspMsg<'static>
type Owned = NowSessionMsgBoxRspMsg<'static>
The resulting type after obtaining ownership.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Creates owned data from data.
Source§impl<'a> PartialEq for NowSessionMsgBoxRspMsg<'a>
impl<'a> PartialEq for NowSessionMsgBoxRspMsg<'a>
impl<'a> Eq for NowSessionMsgBoxRspMsg<'a>
impl<'a> StructuralPartialEq for NowSessionMsgBoxRspMsg<'a>
Auto Trait Implementations§
impl<'a> Freeze for NowSessionMsgBoxRspMsg<'a>
impl<'a> RefUnwindSafe for NowSessionMsgBoxRspMsg<'a>
impl<'a> Send for NowSessionMsgBoxRspMsg<'a>
impl<'a> Sync for NowSessionMsgBoxRspMsg<'a>
impl<'a> Unpin for NowSessionMsgBoxRspMsg<'a>
impl<'a> UnwindSafe for NowSessionMsgBoxRspMsg<'a>
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