Struct twilight_http::request::guild::create_guild::CreateGuildError [−][src]
pub struct CreateGuildError { /* fields omitted */ }
Expand description
The error returned when the guild can not be created as configured.
Implementations
impl CreateGuildError
[src]
impl CreateGuildError
[src]#[must_use = "retrieving the type has no effect if left unused"]pub const fn kind(&self) -> &CreateGuildErrorType
[src]
#[must_use = "retrieving the type has no effect if left unused"]pub const fn kind(&self) -> &CreateGuildErrorType
[src]Immutable reference to the type of error that occurred.
#[must_use = "consuming the error and retrieving the source has no effect if left unused"]pub fn into_source(self) -> Option<Box<dyn Error + Send + Sync>>
[src]
#[must_use = "consuming the error and retrieving the source has no effect if left unused"]pub fn into_source(self) -> Option<Box<dyn Error + Send + Sync>>
[src]Consume the error, returning the source error if there is any.
#[must_use = "consuming the error into its parts has no effect if left unused"]pub fn into_parts(
self
) -> (CreateGuildErrorType, Option<Box<dyn Error + Send + Sync>>)
[src]
#[must_use = "consuming the error into its parts has no effect if left unused"]pub fn into_parts(
self
) -> (CreateGuildErrorType, Option<Box<dyn Error + Send + Sync>>)
[src]Consume the error, returning the owned error type and the source error.
Trait Implementations
impl Debug for CreateGuildError
[src]
impl Debug for CreateGuildError
[src]impl Display for CreateGuildError
[src]
impl Display for CreateGuildError
[src]impl Error for CreateGuildError
[src]
impl Error for CreateGuildError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for CreateGuildError
impl Send for CreateGuildError
impl Sync for CreateGuildError
impl Unpin for CreateGuildError
impl UnwindSafe for CreateGuildError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,