pub struct Channel(/* private fields */);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 PartialOrd for Channel
impl PartialOrd for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
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