ConnectionStateSend

Trait ConnectionStateSend 

Source
pub trait ConnectionStateSend {
    // Required methods
    fn send<'a, M>(
        &mut self,
        message: impl IntoEdgeDBBackendBuilder<'a, M>,
    ) -> Result<(), Error>;
    fn auth(
        &mut self,
        user: String,
        database: String,
        branch: String,
    ) -> Result<(), Error>;
    fn params(&mut self) -> Result<(), Error>;
}

Required Methods§

Source

fn send<'a, M>( &mut self, message: impl IntoEdgeDBBackendBuilder<'a, M>, ) -> Result<(), Error>

Source

fn auth( &mut self, user: String, database: String, branch: String, ) -> Result<(), Error>

Source

fn params(&mut self) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F> ConnectionStateSend for F
where F: for<'a> FnMut(ConnectionEvent<'a>) -> Result<(), Error>,