pub struct Channel(_);
Expand description
Channel
Implementations§
source§impl Channel
impl Channel
sourcepub unsafe fn new_unchecked(name: String) -> Channel
pub unsafe fn new_unchecked(name: String) -> Channel
Create channel with arbitrary name, bypassing name validity checks
Not recommened! Use new()
method above instead.
Safety
Only if Channel::is_valid_name(name)
sourcepub fn is_valid_name(name: &str) -> bool
pub fn is_valid_name(name: &str) -> bool
Check if given name is a valid channel name
Valid channel name can contain only English letters (A
-Z
, a
-z
),
numbers (0
-9
), underscore, forward slash, dot and colon (_
, /
, .
, :
)
Trait Implementations§
source§impl PartialEq<Channel> for Channel
impl PartialEq<Channel> for Channel
source§impl PartialOrd<Channel> for Channel
impl PartialOrd<Channel> for Channel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Channel
Auto Trait Implementations§
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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