pub struct Received<Message> { /* private fields */ }Expand description
Typed received message wrapper.
Implementations§
Source§impl<Message> Received<Message>
impl<Message> Received<Message>
Sourcepub fn new(message: Message) -> Received<Message>
pub fn new(message: Message) -> Received<Message>
Create a received message wrapper with absent RelayState.
Sourcepub fn with_relay_state(self, relay_state: RelayStateParam) -> Received<Message>
pub fn with_relay_state(self, relay_state: RelayStateParam) -> Received<Message>
Record the RelayState received with the browser message.
Sourcepub fn relay_state(&self) -> &RelayStateParam
pub fn relay_state(&self) -> &RelayStateParam
RelayState received with the browser message.
Sourcepub fn into_message(self) -> Message
pub fn into_message(self) -> Message
Consume the wrapper and return the typed message.
Trait Implementations§
Auto Trait Implementations§
impl<Message> Freeze for Received<Message>where
Message: Freeze,
impl<Message> RefUnwindSafe for Received<Message>where
Message: RefUnwindSafe,
impl<Message> Send for Received<Message>where
Message: Send,
impl<Message> Sync for Received<Message>where
Message: Sync,
impl<Message> Unpin for Received<Message>where
Message: Unpin,
impl<Message> UnsafeUnpin for Received<Message>where
Message: UnsafeUnpin,
impl<Message> UnwindSafe for Received<Message>where
Message: UnwindSafe,
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