#[non_exhaustive]pub struct ErrorEndpoint {
pub cause: HangupCause,
}Expand description
Bridge to a specific hangup cause: error/{cause}.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cause: HangupCauseHangup cause code.
Implementations§
Source§impl ErrorEndpoint
impl ErrorEndpoint
Sourcepub fn new(cause: HangupCause) -> Self
pub fn new(cause: HangupCause) -> Self
Create a new error endpoint with the given hangup cause.
Trait Implementations§
Source§impl Clone for ErrorEndpoint
impl Clone for ErrorEndpoint
Source§fn clone(&self) -> ErrorEndpoint
fn clone(&self) -> ErrorEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorEndpoint
impl Debug for ErrorEndpoint
Source§impl<'de> Deserialize<'de> for ErrorEndpoint
impl<'de> Deserialize<'de> for ErrorEndpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DialString for ErrorEndpoint
impl DialString for ErrorEndpoint
Source§impl Display for ErrorEndpoint
impl Display for ErrorEndpoint
Source§impl From<ErrorEndpoint> for Endpoint
impl From<ErrorEndpoint> for Endpoint
Source§fn from(ep: ErrorEndpoint) -> Self
fn from(ep: ErrorEndpoint) -> Self
Converts to this type from the input type.
Source§impl FromStr for ErrorEndpoint
impl FromStr for ErrorEndpoint
Source§impl PartialEq for ErrorEndpoint
impl PartialEq for ErrorEndpoint
Source§impl Serialize for ErrorEndpoint
impl Serialize for ErrorEndpoint
impl Copy for ErrorEndpoint
impl Eq for ErrorEndpoint
impl StructuralPartialEq for ErrorEndpoint
Auto Trait Implementations§
impl Freeze for ErrorEndpoint
impl RefUnwindSafe for ErrorEndpoint
impl Send for ErrorEndpoint
impl Sync for ErrorEndpoint
impl Unpin for ErrorEndpoint
impl UnsafeUnpin for ErrorEndpoint
impl UnwindSafe for ErrorEndpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.