#[non_exhaustive]pub enum SocketChannel {
Job {
job_id: String,
},
JobTasks {
job_id: String,
},
Task {
task_id: String,
},
UserJobs {
user_id: String,
},
UserTasks {
user_id: String,
},
Custom(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl SocketChannel
impl SocketChannel
pub fn custom(channel: impl Into<String>) -> Self
pub fn job(job_id: impl Into<String>) -> Self
pub fn job_tasks(job_id: impl Into<String>) -> Self
pub fn task(task_id: impl Into<String>) -> Self
pub fn user_jobs(user_id: impl Into<String>) -> Self
pub fn user_tasks(user_id: impl Into<String>) -> Self
pub fn name(&self) -> Cow<'_, str>
pub fn is_job(&self) -> bool
pub fn is_job_tasks(&self) -> bool
pub fn is_task(&self) -> bool
pub fn is_user_jobs(&self) -> bool
pub fn is_user_tasks(&self) -> bool
pub fn job_id(&self) -> Option<&str>
pub fn task_id(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for SocketChannel
impl Clone for SocketChannel
Source§fn clone(&self) -> SocketChannel
fn clone(&self) -> SocketChannel
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 moreSource§impl Debug for SocketChannel
impl Debug for SocketChannel
Source§impl PartialEq for SocketChannel
impl PartialEq for SocketChannel
Source§fn eq(&self, other: &SocketChannel) -> bool
fn eq(&self, other: &SocketChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SocketChannel
impl StructuralPartialEq for SocketChannel
Auto Trait Implementations§
impl Freeze for SocketChannel
impl RefUnwindSafe for SocketChannel
impl Send for SocketChannel
impl Sync for SocketChannel
impl Unpin for SocketChannel
impl UnsafeUnpin for SocketChannel
impl UnwindSafe for SocketChannel
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