pub fn describe<E>(client: &Client, what: DescribeTarget) -> Result<(), E>
where
    E: std::convert::From<crate::error::Error>,
{
    let inner = client.inner();
    inner.raw_buf(|buf| {
        match what {
            DescribeTarget::Statement(name) => {
                frontend::describe(b'S', &name, buf).map_err(Error::encode)?
            }
            DescribeTarget::Portal(name) => {
                frontend::describe(b'P', &name, buf).map_err(Error::encode)?
            }
        };

        Ok(())
    })?;

    Ok(())
}
/// Issue a describe command. Will be fired on next sync.
Issue a describe command. Will be fired on next sync.
Issue a describe command . Will be fired on next sync .
pub fn describe<E>(client: &Client, what: DescribeTarget) -> Result<(), E>
where
    E: std::convert::From<crate::error::Error>,
{
    let inner = client.inner();
    inner.raw_buf(|buf| {
        match what {
            DescribeTarget::Statement(name) => {
                frontend::describe(b'S', &name, buf).map_err(Error::encode)?
            }
            DescribeTarget::Portal(name) => {
                frontend::describe(b'P', &name, buf).map_err(Error::encode)?
            }
        };
        Ok(())
    })?;
    Ok(())
}
pub fn describe < E > ( client : & Client , what : DescribeTarget ) -> Result < ( ) , E > where E : std :: convert :: From < crate :: error :: Error > , { let inner = client . inner ( ) ; inner . raw_buf ( | buf | { match what { DescribeTarget :: Statement ( name ) => { frontend :: describe ( b'S' , & name , buf ) . map_err ( Error :: encode ) ? } DescribeTarget :: Portal ( name ) => { frontend :: describe ( b'P' , & name , buf ) . map_err ( Error :: encode ) ? } } ; Ok ( ( ) ) } ) ? ; Ok ( ( ) ) }
Issue a describe command.
Issue a describe command .
client
&Client
what
DescribeTarget
client
&Client
what
DescribeTarget