pub struct RegisteredChannel {
pub channel: Arc<dyn Channel>,
pub login: Option<Arc<dyn ChannelLogin>>,
}Expand description
One channel implementation and its optional interactive-login adapter.
Fields§
§channel: Arc<dyn Channel>§login: Option<Arc<dyn ChannelLogin>>Implementations§
Source§impl RegisteredChannel
impl RegisteredChannel
pub fn new(channel: Arc<dyn Channel>) -> Self
pub fn with_login( channel: Arc<dyn Channel>, login: Arc<dyn ChannelLogin>, ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RegisteredChannel
impl !UnwindSafe for RegisteredChannel
impl Freeze for RegisteredChannel
impl Send for RegisteredChannel
impl Sync for RegisteredChannel
impl Unpin for RegisteredChannel
impl UnsafeUnpin for RegisteredChannel
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