pub enum ControlCommand {
OpenStream(Sender<Result<Stream, ConnectionError>>),
AcceptStream(Sender<Result<Stream, ConnectionError>>),
CloseConnection(Sender<()>),
}Expand description
Control to Connection commands.
Variants§
OpenStream(Sender<Result<Stream, ConnectionError>>)
Open a new stream to the remote end.
AcceptStream(Sender<Result<Stream, ConnectionError>>)
Accept a new stream from the remote end.
CloseConnection(Sender<()>)
Close the whole connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlCommand
impl !RefUnwindSafe for ControlCommand
impl Send for ControlCommand
impl Sync for ControlCommand
impl Unpin for ControlCommand
impl !UnwindSafe for ControlCommand
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