pub struct BeginError { /* private fields */ }Expand description
A synchronous refusal to start an enumeration.
The request – and the captured security context, when there was one – come back with the error, because nothing was accepted: a caller can retry with exactly what it submitted rather than rebuilding it.
Implementations§
Source§impl BeginError
impl BeginError
Sourcepub const fn failure(&self) -> BeginFailure
pub const fn failure(&self) -> BeginFailure
Why the enumeration was refused.
Sourcepub const fn request(&self) -> &EnumerationRequest
pub const fn request(&self) -> &EnumerationRequest
The request that was refused.
Sourcepub fn into_parts(self) -> (EnumerationRequest, Option<ImpersonationToken>)
pub fn into_parts(self) -> (EnumerationRequest, Option<ImpersonationToken>)
Take back the request and, when one was captured, the security context, so a retry costs neither a rebuild nor a second capture.
Sourcepub const fn capture_error(&self) -> Option<&CaptureError>
pub const fn capture_error(&self) -> Option<&CaptureError>
The capture failure behind a BeginFailure::TokenCapture.
Trait Implementations§
Source§impl Debug for BeginError
impl Debug for BeginError
Source§impl Display for BeginError
impl Display for BeginError
Source§impl Error for BeginError
impl Error for BeginError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for BeginError
impl !UnwindSafe for BeginError
impl Freeze for BeginError
impl Send for BeginError
impl Sync for BeginError
impl Unpin for BeginError
impl UnsafeUnpin for BeginError
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