pub enum DispatchChannel {
Email,
Webhook,
Slack,
Sms,
InApp,
}Expand description
Dispatch channel classification.
Variants§
Electronic mail.
Webhook
HTTP(S) webhook endpoint.
Slack
Slack workspace message.
Sms
SMS short message.
InApp
In-application notification.
Implementations§
Source§impl DispatchChannel
impl DispatchChannel
Sourcepub const fn is_external(self) -> bool
pub const fn is_external(self) -> bool
Returns true for channels that involve external network calls.
Sourcepub const fn typical_latency_ms(self) -> u32
pub const fn typical_latency_ms(self) -> u32
Typical round-trip latency expectation in milliseconds.
Trait Implementations§
Source§impl Clone for DispatchChannel
impl Clone for DispatchChannel
Source§fn clone(&self) -> DispatchChannel
fn clone(&self) -> DispatchChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DispatchChannel
Source§impl Debug for DispatchChannel
impl Debug for DispatchChannel
impl Eq for DispatchChannel
Source§impl Hash for DispatchChannel
impl Hash for DispatchChannel
Source§impl PartialEq for DispatchChannel
impl PartialEq for DispatchChannel
impl StructuralPartialEq for DispatchChannel
Auto Trait Implementations§
impl Freeze for DispatchChannel
impl RefUnwindSafe for DispatchChannel
impl Send for DispatchChannel
impl Sync for DispatchChannel
impl Unpin for DispatchChannel
impl UnsafeUnpin for DispatchChannel
impl UnwindSafe for DispatchChannel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.