pub struct BlockingTaskConnection { /* private fields */ }Implementations§
Source§impl BlockingTaskConnection
impl BlockingTaskConnection
pub fn new(inner: Arc<Mutex<dyn Connection>>, runtime_handle: Handle) -> Self
pub fn with_connection<R>( &self, f: impl FnOnce(&mut dyn Connection) -> Result<R, TaskError>, ) -> Result<R, TaskError>
pub fn execute_command(&self, command: &str) -> Result<String, TaskError>
Trait Implementations§
Source§impl Clone for BlockingTaskConnection
impl Clone for BlockingTaskConnection
Source§fn clone(&self) -> BlockingTaskConnection
fn clone(&self) -> BlockingTaskConnection
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BlockingTaskConnection
impl !UnwindSafe for BlockingTaskConnection
impl Freeze for BlockingTaskConnection
impl Send for BlockingTaskConnection
impl Sync for BlockingTaskConnection
impl Unpin for BlockingTaskConnection
impl UnsafeUnpin for BlockingTaskConnection
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