pub struct UserInputSlot<'a> { /* private fields */ }
Expand description
User Input Slot
Represents a single request for user input by the backend VPN process.
Implementations§
Source§impl<'a> UserInputSlot<'a>
impl<'a> UserInputSlot<'a>
Sourcepub async fn new(
proxy: &'a SessionsNodeProxy<'_>,
qtype: ClientAttentionType,
qgroup: ClientAttentionGroup,
qid: u32,
) -> Result<UserInputSlot<'a>>
pub async fn new( proxy: &'a SessionsNodeProxy<'_>, qtype: ClientAttentionType, qgroup: ClientAttentionGroup, qid: u32, ) -> Result<UserInputSlot<'a>>
Construct a UserInputSlot
§Arguments
proxy
- SessionsNodeProxy object for the related VPN session.qtype
- ClientAttentionType of the request.qgroup
- ClientAttentionGroup of the request.qid
- Unique ID for this request.
Sourcepub async fn provide_input(&'a self, value: &str) -> Result<()>
pub async fn provide_input(&'a self, value: &str) -> Result<()>
Sourcepub fn type_group(&'a self) -> UserInputQueueTypeGroup
pub fn type_group(&'a self) -> UserInputQueueTypeGroup
A tuple consisting of this request’s ClientAttentionType and ClientAttentionGroup.
Sourcepub fn variable_name(&'a self) -> &str
pub fn variable_name(&'a self) -> &str
Internal variable name.
Sourcepub fn input_mask(&'a self) -> bool
pub fn input_mask(&'a self) -> bool
Should the user’s input be masked/hidden?
Auto Trait Implementations§
impl<'a> Freeze for UserInputSlot<'a>
impl<'a> !RefUnwindSafe for UserInputSlot<'a>
impl<'a> Send for UserInputSlot<'a>
impl<'a> Sync for UserInputSlot<'a>
impl<'a> Unpin for UserInputSlot<'a>
impl<'a> !UnwindSafe for UserInputSlot<'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