pub struct ServEnvironmentRequest<'g, 'a> { /* private fields */ }Expand description
An environment variable request
Implementations§
Source§impl<'g, 'a> ServEnvironmentRequest<'g, 'a>
impl<'g, 'a> ServEnvironmentRequest<'g, 'a>
Sourcepub fn succeed(self) -> Result<()>
pub fn succeed(self) -> Result<()>
Indicate that the request succeeded.
Note that if the peer didn’t request a reply, this call will not do anything.
Sourcepub fn fail(self) -> Result<()>
pub fn fail(self) -> Result<()>
Indicate that the request failed.
Note that if the peer didn’t request a reply, this call
will not do anything.
Does not need to be called explicitly, also occurs on drop without accept()
Sourcepub fn channel(&self) -> ChanNum
pub fn channel(&self) -> ChanNum
Return the associated channel number.
This will correspond to a ChanHandle::num()
from a previous ServOpenSession event.
Auto Trait Implementations§
impl<'g, 'a> Freeze for ServEnvironmentRequest<'g, 'a>
impl<'g, 'a> RefUnwindSafe for ServEnvironmentRequest<'g, 'a>
impl<'g, 'a> Send for ServEnvironmentRequest<'g, 'a>
impl<'g, 'a> Sync for ServEnvironmentRequest<'g, 'a>
impl<'g, 'a> Unpin for ServEnvironmentRequest<'g, 'a>
impl<'g, 'a> !UnwindSafe for ServEnvironmentRequest<'g, '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